Professional Web Applications Themes

HowTo clear all ViewState from a WebUserControl without doing a PostBack ? - ASP.NET General

Hello, how can I clear all ViewStates from a WebUserControl without doing a PostBack ? Thanks in advance, Andreas...

  1. #1

    Default 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


    Andreas Guest

  2. #2

    Default Re: HowTo clear all ViewState from a WebUserControl without doing a PostBack ?

    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" <com> wrote in message
    news:phx.gbl... 


    Kevin Guest

  3. #3

    Default Re: HowTo clear all ViewState from a WebUserControl without doing a PostBack ?

    Hello Kevin,
    should I use control.clear? Is there a way to clear any viewstate from
    textboxes?

    Regards,
    Andreas


    "Kevin Spencer" <com> schrieb im Newsbeitrag
    news:phx.gbl... 
    >
    >[/ref]


    Andreas Guest

  4. #4

    Default Re: HowTo clear all ViewState from a WebUserControl without doing a PostBack ?

    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!
    Natty Guest

Similar Threads

  1. Persisting DataSource on Postback using ViewState
    By Chris Carter in forum ASP.NET
    Replies: 4
    Last Post: March 7th, 12:50 PM
  2. Dropdownlist not keeping viewstate after postback
    By David Wyn Davies in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: May 30th, 12:37 PM
  3. Viewstate of WebUserControl does NOT work
    By Christian in forum ASP
    Replies: 5
    Last Post: July 15th, 09:15 PM
  4. Viewstate of WebUserControl does NOT work
    By Christian in forum ASP.NET General
    Replies: 2
    Last Post: July 15th, 03:48 PM
  5. HowTo get a Viewstate Value from my Parent Class?
    By Andreas Klemt in forum ASP.NET General
    Replies: 0
    Last Post: July 14th, 10:31 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139