Strange form request - Ideas or input requested

Discussion in 'ASP .Net Web Controls' started by VK, Feb 22, 2005.

  1. VK

    VK Guest

    Hello:

    We have the regular aspx form with checkboxlist, text boxes etc, all
    this information is inserted into database and emailed to one user,
    which is working fine. What they would like to do is - once the user
    submits this information it takes them to another screen which lists out
    information typed/selected and then once they are satisfied with this
    submit again which would then insert into database and email an user.

    Is it possible to add another step before the form is submitted?

    Many thanks,
    vani

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    VK, Feb 22, 2005
    #1
    1. Advertising

  2. VK

    MasterGaurav Guest

    What do you want to do in the "another step before"?

    Are you using ASP.Net 2.0? If so... there's a direct way by use of
    cross-page-posting.

    On ASP.Net 1.1, you may be able to make use of Panel. But it all
    depends on what you are trying to do.

    --
    Cheers,
    Gaurav Vaish
    http://www.mastergaurav.org
    http://mastergaurav.blogspot.com
    --------------------------------
     
    MasterGaurav, Feb 23, 2005
    #2
    1. Advertising

  3. VK

    VK Guest

    Hi Gaurav,

    the second screen is to show the user the information he keyed in, if
    any part is incorrect then he can use the browser back button and
    re-enter the information. It is like a confirmation screen for the user
    before this information is submitted to database and emailed to another
    user.

    We are using .Net 1.1 - could you explain a bit more?

    Thanks.
    Vani



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    VK, Feb 23, 2005
    #3
  4. VK

    MasterGaurav Guest

    Great then... Panel is there for your rescue.

    Divide your page into three panels.

    Panel 1: For information input
    Panel 2: Information confirmation
    Panel 3: Success report (this can optionally a forward to a new /
    success page so that the information is not resubmitted on reloading)

    One panel will be visible at one time.

    Steps:
    1. Make Panel-1 visible. Keep a hidden variable to track the panel
    number.
    2. Submit the form. Increase panel number by 1.
    3. Show panel 2. Give a back link. Preferably, don't ask him to press
    Back button since if cache is set to "Automatically detect", all his
    data will be lost. IE is very bad in this.
    4. Back link will show panel 1 (of course, decrease the panel number by
    1)
    5. A confirm link will move to panel 3.

    Note that since everything is happening within one page, all data will
    be stored in viewstate and never lost. doesn't matter even if the cache
    invalidation is set to "Everytime the page is loaded" on client.



    --
    Cheers,
    Gaurav Vaish
    http://www.mastergaurav.org
    http://mastergaurav.blogspot.com
    --------------------------------
     
    MasterGaurav, Feb 25, 2005
    #4
    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. Patrick Delifer
    Replies:
    0
    Views:
    3,419
    Patrick Delifer
    May 3, 2004
  2. Ankur
    Replies:
    1
    Views:
    364
    Daniel Ulfe
    Jul 1, 2009
  3. David Logan
    Replies:
    4
    Views:
    154
    Steven Burn
    May 14, 2004
  4. fochie
    Replies:
    0
    Views:
    337
    fochie
    Feb 1, 2005
  5. Replies:
    2
    Views:
    123
    Hal Rosser
    Apr 15, 2006
Loading...

Share This Page