Two Forms in a Page

Discussion in 'ASP .Net' started by sravan_reddy001, Mar 22, 2008.

  1. i have a problem..

    the webpage i'm designing has two sets of data to be received...

    Personal Info and Professional Info
    these two are place in separated panels and each textbox in both
    panels have the validator controls

    now when i enter details in panel one and click the submit button of
    that panel...
    the data should be posted to website... But due to the validator
    controls in other panels the data is not posted...

    And its not possible to include two server controls of <Form> </Form>

    how do i solve this prob... (I have an alternate solution by placing
    these panels in separate pages) I don't want to do that...
     
    sravan_reddy001, Mar 22, 2008
    #1
    1. Advertising

  2. sravan_reddy001

    bogdan Guest

    I think that validation groups is what you need to look into.
    See the following tutorial:
    http://quickstarts.asp.net/QuickStartv20/aspnet/doc/validation/default.aspx#validationgroups

    Bogdan

    "sravan_reddy001" <> wrote in message
    news:...
    >i have a problem..
    >
    > the webpage i'm designing has two sets of data to be received...
    >
    > Personal Info and Professional Info
    > these two are place in separated panels and each textbox in both
    > panels have the validator controls
    >
    > now when i enter details in panel one and click the submit button of
    > that panel...
    > the data should be posted to website... But due to the validator
    > controls in other panels the data is not posted...
    >
    > And its not possible to include two server controls of <Form> </Form>
    >
    > how do i solve this prob... (I have an alternate solution by placing
    > these panels in separate pages) I don't want to do that...
     
    bogdan, Mar 22, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Wilson [MVP]

    Re: Patch - two server forms on single web page

    Paul Wilson [MVP], Jun 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    909
    Paul Wilson [MVP]
    Jun 25, 2003
  2. Sara T.
    Replies:
    0
    Views:
    615
    Sara T.
    Mar 2, 2005
  3. GenxLogic
    Replies:
    3
    Views:
    1,329
    andrewmcdonagh
    Dec 6, 2006
  4. Sara T.
    Replies:
    0
    Views:
    131
    Sara T.
    Mar 2, 2005
  5. Eric
    Replies:
    2
    Views:
    596
Loading...

Share This Page