Open a file dialog on click of a button in ASP.NET

Hi Experts,

How can I get something like this in ASP.NET and VB.NET?
OpenFileDialog openFileDialog = new OpenFileDialog();
txtFile.Text = openFileDialog.FileName;

Thank u.
RadhaKrishnaKiJayaAsked:
Who is Participating?
 
Kamal KhaleefaInformation Security SpecialistCommented:
Hi

there is no open file dialog in asp.net
as alternative solution you can use the file upload control

check this article:
http://stackoverflow.com/questions/5272902/how-to-apply-openfiledialog-function-to-a-webapplication
0
 
Mandeep SinghDatabase AdministratorCommented:
Hi,

I think you want to upload file by opening a popup on click of button, if i am right, please have a look here:

http://hightechnology.in/upload-file-with-asp-net-asyncfileupload-control-inside-modalpopupextender/
0
 
RadhaKrishnaKiJayaAuthor Commented:
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.