Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2004
    Posts
    25

    Unanswered: ASP.NET Error Code

    I am trying to run a site that I made and i keep receiving this error:

    Control 'EmployeeID' of type 'DropDownList' must be placed inside a form tag with runat=server.

    What do I have to do in order to make this page run?

    I'd greatly appreciate any help.

  2. #2
    Join Date
    Apr 2004
    Posts
    50

  3. #3
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    I don't know much .Net, but it seems, from the error, that the runat=server should be in the form tag, not the dropdown list tag. I could be wrong though...
    That which does not kill me postpones the inevitable.

  4. #4
    Join Date
    Apr 2004
    Posts
    50
    Quote Originally Posted by Seppuku
    I don't know much .Net, but it seems, from the error, that the runat=server should be in the form tag, not the dropdown list tag. I could be wrong though...
    The runat=server should be in all ASP.NET server controls.

  5. #5
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    I would say that the form needs that runat tag (due to the error message) however I would also advise that the drop down list needs it as well.

Posting Permissions

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