-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: s_hashim
Message 5 in Discussion


Hi SitaRaman,
Thank you very much for your kind 
reply.
I got the solution.
 
The problem was their in 
.aspx.htm

<FORM id=Form1 method=post encType=multipart/form-data runat="server">
<form id="Form1" method="post" runat="server" 
enctype="multipart/form-data" >
 
here enctype="multipart/form-data"  was 
missing,
 
then it worked for me
 
Take care
 
Regards
Hashim</FORM>
 

  -----Original Message-----
From: SitaramanM 
  [mailto:[EMAIL PROTECTED]
Sent: Friday, December 26, 2003 11:33 
  AM
To: BDOTNET
Subject: Re: Object reference not set to an 
  instance of an object. in ASP.NET


  
    
      
      New Message on BDOTNET
    
      

  Object 
    reference not set to an instance of an object. in 
    ASP.NET


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 4 in 
                Discussion 
      
        
          
            
            
              From: SitaramanM 
            
              

                Hi
                Puneet :  Correction, you ned not instantiate this 
                variable.  For wevery control that you place on the web 
                form(aspx), there will be a corresponding object variable with 
                the same name created in your code-behind(aspx.vb).   
                It never has a new and you should never New it also.   
                ASP.Net runtime will associate, at runtime,  the variable 
                with the corresponding control.
                 
                s_hashim :  That said, the typical reason why the 
                object variable is not made to point to the control at runtime, 
                thereby leading to nul reference exception is that, 
                a)  the name of the HtmlInputFile control in the aspx and the variable 
name 
                in the code-behind is not matching, thereby stopping the runtime 
                from associating it.  Ensure that the names are same in 
                code-behind and aspx
                (or)
                b) runat=server for the control is 
                not present
                 
                Check and Correct these 2 problems and u shld have no 
                trouble. get back in case ur problem persists
                 
                hth
                 
                 
                regards,
                 
                sr
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to