Results 1 to 2 of 2

Thread: Before postback ?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    33

    Before postback ?

    I use a collection and placeholder to add controls, I 've
    declared in my program.

    When the user has made his selections, he has to
    press the 'submit' button.
    It causes an postback event. But that is not what I want the
    program to do, because all my declared variables are empty,
    because of the postback event!! So I don't know what the user selected, 'remember all the controls are not actualy on the page'
    And I use a menu to create different pages, so after the postback the webpage is empty.

    is it possible that, when a 'user' clicks on the button to trigger
    an 'before postback event ?????', i would give me just enough time to read and write all my declared variables and the selections the user has made.

    greetings,

    Krol

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    'remember all the controls are not actualy on the page'
    Actually they are on the page, but when you postback the page "forgets" them. You need to rebuild your controls before the postback change events fire(so no later than the Page.Load event).

    So do whatever you did to originally create the controls at some point on or before the Page.Load event so that on every postback they are "remembered".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width