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.
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.
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.
Bookmarks