----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: SitaramanM Message 4 in Discussion 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 ----------------------------------------------------------- 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]
