Results 1 to 3 of 3

Thread: form tag Error???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Location
    cainta
    Posts
    80

    form tag Error???

    How would I solve this error?

    Exception Details: System.Web.HttpException: Control 'info_rver' of type 'TextBox' must be placed inside a form tag with runat=server.

    I made a WebForm.aspx in asp.net and put a textbox inside the form. When I call the WebForm the error occurred. I also tried to removed the runat=server from the form tag but the textbox was deleted.


    Pls Help!!!

  2. #2
    Junior Member Sami Antero's Avatar
    Join Date
    Jun 2005
    Location
    Helsinki, Finland
    Posts
    16

    Re: form tag Error???

    Hi!
    The error you're gettin typically raises when the control is not inside the form tags like this:
    HTML Code:
    <form id="myForm" method="post" runat="server">
              <asp:TextBox id="myTextBox" runat="server"></asp:TextBox>
    </form>
    Let's see code?

    tsami
    Sami Antero
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    no smileys, no funky certificates. Sorry.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Location
    cainta
    Posts
    80

    Re: form tag Error???

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width