Getting File Path in Browse File Dialog in ASP.Net

G

Guest

Hi everybody,

I like to allow user to select and browse to which location to save the
pdf file of a crystal report viewed on a web page, how can i do this in
ASP.Net? I need to get the path selected from dialog box. Thanks.

Note: Using VS 2002


den2005
 
C

Cowboy \(Gregory A. Beamer\)

You are talking about a path on the server?

You can use server.mappath and create a mechanism that pulls a tree up and
down from that position, but it is far better to give them set locations,
even if it includes making a new directory. There are a couple of reasons
this is true:

Security - when you open up the directory access to the web, a hacker can
traverse your system and takeover. IIS 6 will try to help you in this
regard, but allowing a user unfettered access to save locations requires
turing this feature off.

Security - you are exposing the layout of your application and the server

Performance - either you gather a bunch of info and present up front or you
have a lot of trips back to the server.
--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
G

Guest

HI Gregory,

Thanks for the reply. That is the requirement, to save the crystal report
as pdf file in the local pc folder location chosen by user like downloading a
file from the web. I need to get the selected path and save the crystal
report as pdf file on that path. So, How is this done??


dennis
 
G

Guest

This problem has been resolved using FileStream and Response.BinaryWrite().

den2005
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top