G
Guest
I have a master page which contains a general page framework and also
contains a <form runat=server> around most of the content of the page. Inside
that <form> tag is a ContentPlaceholder.
I then create an ASPX which is tied to that MasterPage and in it a put a
bunch of form fields and an <asp:Button />. When I try to run the page, I
get...
"Control 'ctl00_BodyCPH_ctl00' of type 'Button' must be placed inside a form
tag with runat=server."
So I tried outing a form inside the ASPX page as well and I got a different
error...
"A page can have only one server-side Form tag"
So does this mean that I have to have the FORM tag inside the ASPX page and
cannot have it be in the MASTER page? That seems weird, especially because
when you use VS to create a MasterPage, it opens with a form tag already
inside it.
contains a <form runat=server> around most of the content of the page. Inside
that <form> tag is a ContentPlaceholder.
I then create an ASPX which is tied to that MasterPage and in it a put a
bunch of form fields and an <asp:Button />. When I try to run the page, I
get...
"Control 'ctl00_BodyCPH_ctl00' of type 'Button' must be placed inside a form
tag with runat=server."
So I tried outing a form inside the ASPX page as well and I got a different
error...
"A page can have only one server-side Form tag"
So does this mean that I have to have the FORM tag inside the ASPX page and
cannot have it be in the MASTER page? That seems weird, especially because
when you use VS to create a MasterPage, it opens with a form tag already
inside it.