remove form runat=server
from your user control. 

UCs can always assume the calling page has a server side form.

On 9/7/05, urmila nalla <[EMAIL PROTECTED]> wrote:
>  hi all
>  
>  see the following error ..i created a user control , it's name is
> bankapp.ascx.  Which i used in webform5.aspx...i am getting this following
> error...please clarify my doubt
>  
>  waiting for reply...
>  
>  bye
>  urmila..
>  
>  A page can have only one server-side Form tag. 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: A page can have only one
> server-side Form tag.
>  
>  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): A page can have only one server-side Form
> tag.]   System.Web.UI.Page.OnFormRender(HtmlTextWriter writer, String
> formUniqueID)  
> System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
> writer)  
> System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
> writer)  
> System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter
> output)  
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 
>  System.Web.UI.Control.RenderChildren(HtmlTextWriter
> writer)   System.Web.UI.Control.Render(HtmlTextWriter writer)  
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 
>  System.Web.UI.Page.ProcessRequestMain()
>  
>  
>  
>  
>              
>  ---------------------------------
>  Click here to donate to the Hurricane Katrina relief effort.
>  
>  [Non-text portions of this message have been removed]
>  
>  
>  
>  ________________________________
>  YAHOO! GROUPS LINKS 
>  
>  
>  Visit your group "AspNetAnyQuestionIsOk" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  
>  ________________________________
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to