-
September 22nd, 2009, 03:20 PM
#1
form raunt server problems
I have a master page with two contentplaceholders.
I have a default page.aspx which uses this masterpage.
In the default page one contentholder has a treeview and the other has a gridview.
Now i need to display both of them together and both require "form raunt server".
but the issue is, i cant have two "form raunt server" in a single page...
I tried putting "form raunt server" on the masterpage but then the treeview and gridview functionality stops working.....
Please help me as to what can i do to solve this.
Thanks
-
September 23rd, 2009, 02:14 AM
#2
Re: form raunt server problems
Your master should have a <form runat="server"> tag, the content should NOT. The contentpage will (like the name says) be the content of the masterpage and thus automatically be this will be inside the form.
Offcourde, inside the masterpage, the contentplaceholder needs to be inside the form tag.
MasterPage markup
Code:
<body>
<form id="form1" runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</form>
</body>
-
September 23rd, 2009, 10:59 AM
#3
Re: form raunt server problems
Sorry ASP.NET isn't designed to work with more than 1 Form on the page. If you can explain why you think you NEED two forms on the page then maybe I can show you one of the workarounds I've used before when I've run into a situation where I thought I needed two forms but really didn't.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|