error control must be placed inside a form tag with runat=server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ultimetnewgenius
    New Member
    • Aug 2008
    • 2

    error control must be placed inside a form tag with runat=server

    hi. im very new with asp.net. i need a little help right here. there's a problem when i view in browser my form, an error occured which is the title above. i already read another posted forum regarding this error and its serve me well for the first time because the controls i build are outside the datagrid. i just put the <form>'code</form> between them and its ok. but the problem i face now is that the error comes from the control button inside the datagrid which is the link button delete in the column of the datagrid. when i did the same thing for it, it just cant. it said "form cannot be nested within another form". wow! im sorry for the long explanation. im really new with this.

    thx in advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Pay special attention to the error messages you are getting.

    Comment

    • ultimetnewgenius
      New Member
      • Aug 2008
      • 2

      #3
      thx a lot for the reply.
      but i do have 1 question here. is it ok to add the form tag within the control button code in datagrid. below is the code where the error comes from.

      <ItemTemplate >
      <asp:LinkButt on id="lbtnDelete " Font-Names="Verdana" Font-Size="7pt" runat="server" Text="Delete" CommandName="De lete" CausesValidatio n="false">Delet e</asp:LinkButton>
      </ItemTemplate>

      i really need help here. im still studying this new things and i really hope you can explain it very clearly. fyi, im a little bit slow learner. huhu. really appreciate it.

      thx thx thx.

      Comment

      Working...