I wanted to put some simple steps for getting files from the client incase I forgot.
To receive the selected client file on the server, follow these steps:
1. Draw a File Field HTML control on a Web form.
2. Right-click the control, and select Run As Server Control from the shortcut menu.
3. Right-click the Web form, and select View HTML Source. Visual Studio displays the HTML code for the Web form.
4. Add an enctype attribute to the "form" tag in the Web form’s HTML.
5. Right-click the Web form, and select View Design from the shortcut menu. Visual Studio displays the Web Forms Designer.
6. Add a Button control and a Click event procedure to the Web form to get and save the selected file.
Friday, September 19, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment