Disable ViewState on base class only?

Discussion in 'ASP .Net Building Controls' started by Damien, Jul 14, 2005.

  1. Damien

    Damien Guest

    Is it possible to somehow disable the ViewState on the base object but
    leave the ViewState on within the new object? For example, I have a
    server control which inherits from DataGrid. I would like to disable
    the DataGrid ViewState while keeping ViewState enabled for my custom
    code (e.g. Properties). I've tried base.EnableViewState = false and it
    seems to turn everything off.

    Thanks in advance for your help!

    -Damien
    Damien, Jul 14, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tomek
    Replies:
    2
    Views:
    664
    Andrey Tarasevich
    Dec 1, 2003
  2. Alf P. Steinbach
    Replies:
    6
    Views:
    532
    John Carson
    Sep 3, 2005
  3. Peter Lee
    Replies:
    6
    Views:
    403
    Grizlyk
    Jan 19, 2007
  4. Hicham Mouline
    Replies:
    1
    Views:
    583
    Victor Bazarov
    Apr 20, 2009
  5. Karan Rajput
    Replies:
    2
    Views:
    130
    Abinoam Jr.
    Dec 22, 2010
Loading...

Share This Page