PDA

View Full Version : error


garrydawkins
01-13-2004, 10:57 AM
Dropdownlist Error
Control 'Dropdownlist1' of type 'DropDownList' must be placed inside a form tag with runat=server.
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: Control 'Dropdownlist1' of type 'DropDownList' must be placed inside a form tag with runat=server.

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): Control 'Dropdownlist1' of type 'DropDownList' must be placed inside a form tag with runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Con trol control) +152
System.Web.UI.WebControls.DropDownList.AddAttribut esToRender(HtmlTextWriter writer) +35
System.Web.UI.WebControls.WebControl.RenderBeginTa g(HtmlTextWriter writer) +17
System.Web.UI.WebControls.WebControl.Render(HtmlTe xtWriter writer) +17
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1900

bruce
01-13-2004, 12:00 PM
GarryDawkins

Didn't this posting help you?

http://forum.discountasp.net/topic.asp?TOPIC_ID=695


[b]quote:Originally posted by garrydawkins

Dropdownlist Error
Control 'Dropdownlist1' of type 'DropDownList' must be placed inside a form tag with runat=server.
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: Control 'Dropdownlist1' of type 'DropDownList' must be placed inside a form tag with runat=server.

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): Control 'Dropdownlist1' of type 'DropDownList' must be placed inside a form tag with runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Con trol control) +152
System.Web.UI.WebControls.DropDownList.AddAttribut esToRender(HtmlTextWriter writer) +35
System.Web.UI.WebControls.WebControl.RenderBeginTa g(HtmlTextWriter writer) +17
System.Web.UI.WebControls.WebControl.Render(HtmlTe xtWriter writer) +17
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1900


</blockquote id="quote"></font id="quote">