Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Getting problems with vb.net codings..help, Object reference not set to an instance

views
     
alvinz_c
post Jan 24 2006, 08:36 AM

Casual
***
Junior Member
407 posts

Joined: Oct 2004
Hi, Jai.. try go to the aspx HTML view, add runat="server" attribute in your <input type="file"> to be HTML server control. You need to create a HtmlInputFile class in your code behind in order to use the File1.PostedFile.FileName.

1. Add runat="server" in the <input type="file"> in HTML view
2. Swtich to Design View
3. Go to code-behind, you will see an HtmlInputFile class will be automatically imported.


Good luck !

 

Change to:
| Lo-Fi Version
0.0138sec    0.29    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 02:37 AM