Server Side form tag

Discussion in 'C#' started by solarthur01@hotmail.com, Dec 6, 2007.

  1. #1
    Im a novice to asp.net i have a xhtml template that i am trying to add a dropdown list using visual studio 2005. However whenever i try and do this i get the following error: "A page can have only one server-side Form tag. " can anyone help please!!!! very frustrated!!!:confused:
     
  2. DPGBB

    DPGBB Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you using a Master Page and a Content Page with the form element in both?
     
    DPGBB, Dec 6, 2007 IP
  3. Forrest

    Forrest Peon

    Messages:
    500
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can have lots of html forms, but only one <form ... runat="server"> tag.
     
    Forrest, Dec 7, 2007 IP
  4. smile123

    smile123 Guest

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i think u have two "forms" or something outside the tag form that run on server
     
    smile123, Dec 9, 2007 IP
  5. solarthur01@hotmail.com

    solarthur01@hotmail.com Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    does that mean i can put it within the run at server tag? because when i drag and drop a form tag it automaticaly inserts a runat server tag. is there anyway i can over come this?