form inside a form

Discussion in 'ASP.NET 2.0' started by Rookie, Jul 8, 2007.

  1. I have a .net web application and I am trying to add a third party search box to my site. The problem is the code that needs to be added must be nested inside a form tag with the action and method parameters specified. The page is already nested inside the standard web form that .aspx pages use. Does anyone know how to or if I can nest a form inside of another form? Just in case my description wasn't good enough here is an example:

    myPage.aspx

    <form id="form1" runat="server">

    <form id="form2" action="http://www.biblegateway.com/quicksearch/" method="post">


    </form>

    </form>

    any help would be greatly appreciated.

    Rookie
     
  2. No,you cannot have two or moreform elements on a aspx page.You should be able to directly add the 3rd partysearchbox control to your page.Just wondering what control are you trying to use?


    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. thanks for the reply, I found a work around for it by recreating the search function with my code behind files. It's a search tool from bibleGateway.com, I didn't realize all it does is send a query string to a specific page. So I made my own :)


    rookie
     

Share This Page