File browser in client side

  • Thread starter Thread starter JL
  • Start date Start date
J

JL

Hi,

Can i use the button click event to open the file browser in client side,
and get back the selected folder and file information?

Thanks for any assistant.


Rgds
Raymond
 
No. It would be a security violation if you could. You have a couple of
options. If you want the user to be able to select a file on their computer
and upload it, you can use an input type=file HTML element (or the
equivalent .Net class), which renders a textbox and a browse button on the
client. If you want more information about their file system, you will need
to use a client-side ActiveX control, which is an executable that must be
given permission by the user to install.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Sorry for mislead you about my question.

I want to design a program that can allow user export the crystal report to
their local driver in excel format.

I can export the report to excel file to "hard code local driver path"
Me.myReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.Excel,"C:\
excel.xls")

However, i want to make more flexible to users. If they can select the save
location first, then i can get the selected path and save to specific path,
it is more perfectly.

Can asp.net provide any method similar my idea?
 
Back
Top