----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Saravana Message 3 in Discussion Hi, Technically speaking, in ASP.NET a kind of multi-form interface is still possible but requires a number of tricks. By design, an ASP.NET page can host exactly one server form. If you place two or more server forms in a page, you won't get any error at compile time. The request for the page is therefore processed as usual using the code built in the Page base class. The temporary class for the page is generated, compiled, and finally loaded. The ASP.NET runtime begins processing the page request and regularly fires the Init, Load, and PreRender events. All these events are handled seamlessly. After the events are handled, the page enters its rendering phase. The class that represents the page calls the Render method on all the individual controls included in the page. So the first <form> block is successfully processed and rendered. After that, the page object sets an internal flag to note that one form object has been processed for the page. Can you guess what happens next? When a <form runat="server"> block is found, the page first verifies that no similar block has already been processed. If the aforementioned internal flag is set, an HttpException is thrown. You can add any number of HTML <form> tags without the runat attribute. For more details about this, check out this article, http://msdn.microsoft.com/msdnmag/issues/03/05/CuttingEdge/ -Saravana www.extremeexperts.com ----------------------------------------------------------- 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]
