469,332 Members | 6,649 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

HowTo clear all ViewState from a WebUserControl without doing a PostBack ?

Hello,
how can I clear all ViewStates from a WebUserControl without
doing a PostBack ?

Thanks in advance,
Andreas
Nov 17 '05 #1
3 4862
You can't. ViewState is handled on the server, not on the client.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Andreas Klemt" <ak******@hotmail.com> wrote in message
news:eF*************@TK2MSFTNGP09.phx.gbl...
Hello,
how can I clear all ViewStates from a WebUserControl without
doing a PostBack ?

Thanks in advance,
Andreas

Nov 17 '05 #2
Hello Kevin,
should I use control.clear? Is there a way to clear any viewstate from
textboxes?

Regards,
Andreas
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schrieb im Newsbeitrag
news:On**************@tk2msftngp13.phx.gbl...
You can't. ViewState is handled on the server, not on the client.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Andreas Klemt" <ak******@hotmail.com> wrote in message
news:eF*************@TK2MSFTNGP09.phx.gbl...
Hello,
how can I clear all ViewStates from a WebUserControl without
doing a PostBack ?

Thanks in advance,
Andreas


Nov 17 '05 #3
Hi,
You can set that textbox won't get any viewstate by setting
enableviewstate property to false. this can be done only on the server
side.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Christian | last post: by
6 posts views Thread by Robin Bonin | last post: by
7 posts views Thread by et | last post: by
1 post views Thread by olduncleamos | last post: by
11 posts views Thread by Nad | last post: by
1 post views Thread by batista | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.