CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 3 of 3

Thread: form raunt server problems

  1. #1
    Join Date
    Jan 2009

    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.


  2. #2
    Join Date
    Sep 2008

    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
        <form id="form1" runat="server">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

  3. #3
    Join Date
    Jul 2006

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)