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

  • Thread starter Sen Mathew via .NET 247
  • Start date
S

Sen Mathew via .NET 247

Dear all

I also have problem with Datagrid Complaining'DataGridLinkButton' must be placed inside a form tag withrunat=server. But My file is an ascx file ie it is a usercontrol. I call this file in to the main file so that we do nothave FORM TAGS in every file instead we have it in our home ordefault aspx file. Could some help me in this matter

Thanking you in advance
 
B

Brock Allen

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top