----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: rags_ Message 5 in Discussion use enableviewstate=false in page directive of page2.aspx Regards, Raghunandan R, Software Engineer, Nous Infosystems, #1,1st main,1st block,kormangala,bangalore - 560034. ph: +91-80-553 4208/552 2086 -----Original Message----- From: SivaDotNet [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 11:02 AM To: BDOTNET Subject: Re: Request.form("ControlName") in ASP.NET New Message on BDOTNET Request.form("ControlName") in ASP.NET Reply Reply to Sender Recommend Message 4 in Discussion From: SivaDotNet Hi Saravana, ThankX for the Info Info. I am doing all these things in ASP.NEt and not in ASP. when I tried with Server.Transfer("Page2.aspx",True) in page1.aspx I am struck up with 1 problem nd is giving the following error. The View State is invalid for this page and might be corrupted. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The View State is invalid for this page and might be corrupted. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): The View State is invalid for this page and might be corrupted.] System.Web.UI.Page.LoadPageStateFromPersistenceMedium() System.Web.UI.Page.LoadPageViewState() System.Web.UI.Page.ProcessRequestMain() Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0 -----Original Message----- From: Saravana [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 8:28 PM To: BDOTNET Subject: Re: Request.form("ControlName") in ASP.NET New Message on BDOTNET Request.form("ControlName") in ASP.NET Reply Reply to Sender Recommend Message 3 in Discussion From: Saravana Hi, Instead of using response.redirect method use server.tranfser to go to the next page. Then you will be able to access the form collection in the second page. Difference Between Server.Transfer and Response.Redirect. When you call Server.Transfer, the state information for all the built-in objects will be included in the transfer. This means that any variables or objects that have been assigned a value in session or application scope will be maintained. In addition, all of the current contents for the request collections will be available to the .asp file receiving the transfer. However, the path parameter which you mention inside server.transfer must not contain an query string or ASP returns an error. Response.Redirect tells the browser to request a different page. Since a redirect forces a new page request, the browser has to make two round trips to the Web server, and the Web server has to handle an extra request. Server.Transfer, which transfers execution to a different ASP page on the server. This avoids the extra round trip, resulting in better overall system performance, as well as a better user experience -Saravana www.extremeexperts.com View other groups in this category. 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]
