How to have 2 forms in a page, submit form and get results to display?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nita Kamat
    New Member
    • Jan 2011
    • 1

    #1

    How to have 2 forms in a page, submit form and get results to display?

    I have a simple .net form with two input boxes to choose the event and location. On button click, an xml url is built and this xml file is read using ReadXml, dataset is built and the results are displayed in the same page. I have both the forms to run at server and it says I cannot have it.

    Thanks
    ~Nita
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    It sounds like everything is working as you want it to.

    Oh wait a second, you have 2 <form> tags in one page don't you?

    Consider implementing a UserControl instead.
    Or consider using an IFrame (this is not advisable because of inherent problems this particular control).

    Or consider retrieving the data in your server side code so that you can strip it of the excess <form> tag and show only what is desired.

    -Frinny

    Comment

    Working...