Groups | Blog | Home
all groups > asp.net > april 2005 >

asp.net : 'DataGridLinkButton' must be placed inside a form tag with runat=server.


Sen Mathew via .NET 247
4/6/2005 11:15:52 PM
Dear all

I also have problem with Datagrid Complaining=
'DataGridLinkButton' must be placed inside a form tag with=
runat=3Dserver=2E But My file is an ascx file ie it is a user=
control=2E I call this file in to the main file so that we do not=
have FORM TAGS in every file instead we have it in our home or=
default aspx file=2E Could some help me in this matter

Thanking you in advance


--------------------------------
From: Sen Mathew

-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)

Patrick Olurotimi Ige
4/7/2005 12:48:21 AM
Sen Mathew just try posting ur code..
That would help
Patrick



Brock Allen
4/7/2005 5:29:51 AM
Is this ASP.NET 1.x or 2.0? When exactly do you get the error? Compile time?
Runtime?

In either case, the control must be used on a page that does have a <form
runat=server> tag. Might this be the problem?

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


AddThis Social Bookmark Button