|
-
Oct 28th, 2004, 07:52 AM
#1
Thread Starter
Hyperactive Member
Clear Control's Viewstate
Hey,
How to clear ALL viewstate?
I mean, not only item, that I added manualy, but all control's states.
Etc. I press "Register" button in large registration form. I do not want go thought every control and set it to previous passition.
PS. I can't simply reload page, becourse I output text (status of registration) on button click.
-
Oct 28th, 2004, 09:13 AM
#2
Fanatic Member
Van you not just set Viewstate to = false ???
-
Oct 28th, 2004, 09:18 AM
#3
Thread Starter
Hyperactive Member
Becource viewstate is needed for other controls, while user fills registration form.
-
Oct 28th, 2004, 12:12 PM
#4
I wonder how many charact
Well there is a Page.ViewState.Clear you can use.
That of course clears viewstate for the entire page, I am a little unsure if it actually clear the page's children's viewstate. You'd have to test that.
But what you can do is iterate the controls of the page, calling its me.viewstate.clear
-
Oct 29th, 2004, 01:28 AM
#5
Thread Starter
Hyperactive Member
It didn't work for me.
Protected and Readonly...
-
Oct 30th, 2004, 09:29 PM
#6
I wonder how many charact
did you try:
VB Code:
me.page.clearchildviewstate
?
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
|