467,923 Members | 1,326 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,923 developers. It's quick & easy.

Open File Dialog Box

SAL
Hello,

Has anyone use the Open File Dialog Box in ASP.net?

I know you can add the HTML File Field control to your ASP page and it will
open the File Dialog Box for you. However, I would like to add a Button to
my ASP page instead that does the same thing. I'm new to ASP.net and C#, so
I'm not sure how I can achieve this. If someone has a code snippet that I
can looked at that does this that would be great

The idea of this is to have the user click my Browse button, and search for
their .csv file, which I will process and upload that data to a SQL Server
Table. I think having a Single Button that says Browse would be cleaner than
having the HTML File Field control that generates Textbox and Browse button
on the page.

Thanks
Sep 27 '06 #1
  • viewed: 7738
Share:
1 Reply
the input type=file is the only way supported by browsers. if you want a
diffent solution, you will need to write an active/x control that must be
installed.

-- bruce (sqlwork.com)

"SAL" <SA*@discussions.microsoft.comwrote in message
news:3C**********************************@microsof t.com...
Hello,

Has anyone use the Open File Dialog Box in ASP.net?

I know you can add the HTML File Field control to your ASP page and it
will
open the File Dialog Box for you. However, I would like to add a Button
to
my ASP page instead that does the same thing. I'm new to ASP.net and C#,
so
I'm not sure how I can achieve this. If someone has a code snippet that I
can looked at that does this that would be great

The idea of this is to have the user click my Browse button, and search
for
their .csv file, which I will process and upload that data to a SQL Server
Table. I think having a Single Button that says Browse would be cleaner
than
having the HTML File Field control that generates Textbox and Browse
button
on the page.

Thanks

Sep 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by John | last post: by
2 posts views Thread by Jonathan Trevor | last post: by
reply views Thread by Dune | last post: by
5 posts views Thread by charles | last post: by
7 posts views Thread by Peter | last post: by
5 posts views Thread by Stefano Tonello | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.