Error al agregar controles...

28/07/2005 - 18:13 por Manuel Sandoval | Informe spam
Hola grupo, como novato estoy haciendo algunas pruebas creando una pequeña
aplicación con las web matrix, todo bien hasta que intento incorporar
objetos desde la tool web control, el error que me arroja es el siguiente
(alguien me podría dar alguna indicación con respecto a esto)

Muchas gracias


Server Error in '/' Application.
-
-

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(Control control) +151

System.Web.UI.WebControls.DropDownList.AddAttributesToRender(HtmlTextWriter
writer) +36
System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter
writer) +17
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +17
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1926
 

Leer las respuestas

#1 Nuno Santos
28/07/2005 - 18:56 | Informe spam
Estas usando NET?
Bueno este grupo es de ASP no ASP.NET, pero si te fijas en la msg puedes ver
que lo que estás haciendo és colocar el control en la página sin estar
dentro de un form con el runat = server...

Tenta crear primero um form con el runat=server y después dentro de este
colocas el control...

Para más detalhes recomiendo que coloques la questión en el grupo de
aspnet...

Nuno Santos


Nuno Santos
nunos7[REMOVER]@hotmail.com

"Manuel Sandoval" wrote in message
news:OFlI$
Hola grupo, como novato estoy haciendo algunas pruebas creando una pequeña
aplicación con las web matrix, todo bien hasta que intento incorporar
objetos desde la tool web control, el error que me arroja es el siguiente
(alguien me podría dar alguna indicación con respecto a esto)

Muchas gracias


Server Error in '/' Application.
-
-

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(Control control) +151

System.Web.UI.WebControls.DropDownList.AddAttributesToRender(HtmlTextWriter
writer) +36
System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter
writer) +17
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +17
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1926



Preguntas similares