Error :Button must be placed in Form
-
Hello, In my Web form (Content page which has a master), i dragged and drop a Button server control but I am getting error that button must be place in a form with runat server. Fine, I placed
manually in the code. Then I am getting error saying , only one form can be exist in a page ( with runat server) . So frustrating. What can I do. I dont see any form tag in the content page''s code. Please help. Thanks in advance Emran
-
Hello, In my Web form (Content page which has a master), i dragged and drop a Button server control but I am getting error that button must be place in a form with runat server. Fine, I placed
manually in the code. Then I am getting error saying , only one form can be exist in a page ( with runat server) . So frustrating. What can I do. I dont see any form tag in the content page''s code. Please help. Thanks in advance Emran
-
Hello, In my Web form (Content page which has a master), i dragged and drop a Button server control but I am getting error that button must be place in a form with runat server. Fine, I placed
manually in the code. Then I am getting error saying , only one form can be exist in a page ( with runat server) . So frustrating. What can I do. I dont see any form tag in the content page''s code. Please help. Thanks in advance Emran
-
You might want to double check the Master Page and make sure that the
contentplaceholder
(whose id is specified in the Content control of the Content page) is placed in a form element which is marked withrunat="server"
. -
Check the master page. It sounds like it has a form, but the content page isn't inside it. --- b { font-weight: normal; }