|
-
Apr 15th, 2003, 07:48 AM
#1
Thread Starter
Member
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
-
Apr 15th, 2003, 09:16 AM
#2
Hyperactive Member
'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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|