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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Open dialog' option in a web form?

Status
Not open for further replies.

nickmollberg

Programmer
Aug 2, 2004
29
US
In a windows form, you can use an 'open dialog' control...
so, you could browse out for, then open a text file and have its contents displayed in a textbox if you wanted to.

Is there similar functionality for a web form?

I need to be able to, from the web form, click an 'open' button, then browse for, and open a text file, passing its contents back to the form to later be parsed.

Anyhow, not finding anything out there on such a control...
anyone ever done this from a web form?
 
Check out the HtmlInputFile control. Here is a link to the documentation on MSDN which has an example of exactly what you want to do.


Rob

Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed - Eisenhower 1953
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top