Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browse Button on webform 1

Status
Not open for further replies.

christheprogrammer

Programmer
Jul 10, 2000
258
CA
I just came across a webpage with a textbox for a filename and a button beside it labelled Browse.
When pressed, the standard local dialog comes up where you can browse your computer's file system and save (or open) any file from your hard drive.
This could be a javascript issue, not sure.

Anyone know how to do this in ASP.NET? I appreciate any response!
Cheers Chris says: "It's time for a beer."
 
I remember that with normal ASP you could use the cphost.dll to do that. With ASP.NET I am not sure. I would check that dll out and see the compatibilities with .NET or if Microsoft has added a similar function.
it's not much, but it could send you towards the right direction...
 
Input type of 'file' will give you that button that opens the box -- it's a standard html widget.

:)
paul
penny1.gif
penny1.gif
 
Thanks guys, but Paul: I don't understand your post. What do you mean by "Input type of 'file'"? Input type for what? I assume you mean there is an html button we can use to do this?

Thanks again Chris says: "It's time for a beer."
 
Hey Chris,

If you're using vs.net, go to your toolbox and the html controls. There's a control there called "File Field".

Thats the control that give you the button that brings up the dialog, and a textbox that saves the selected files path.

Jack
 
Right on, Jack - Thanks a million, I could've spent hours searching for this (I get into the ASP.NET mindset and forget to acknowledge other options sometimes)
Chris says: "It's time for a beer."
 
np man, glad I could help.

Thanks for the star btw!
:)

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top