page-level vs control-level enableViewState

Discussion in 'ASP .Net' started by =?Utf-8?B?Sm9l?=, Oct 26, 2005.

  1. Hello all:

    From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
    events for the datagrid require that the datagrid's enableVireState property
    is set to true. Does the page-level enableViewState property affect the
    control's enableViewState property?

    I am trying to understand this result: when I have the page's
    enableViewState turned off and the control's enableViewState turned on, the
    ItemCommand event never fires whereas if the page's enableViewState property
    is turned on, the ItemCommand event does fire.

    Does anyone understadn this?

    TIA,
    --
    Joe

    VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation
     
    =?Utf-8?B?Sm9l?=, Oct 26, 2005
    #1
    1. Advertising

  2. Joe,

    Yes, if you turn off viewstate for a page it is also turned off for every
    control placed on the page no matter what the control itself is set to.

    --
    Sincerely,

    S. Justin Gengo, MCP
    Web Developer / Programmer

    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzsche
    "Joe" <> wrote in message
    news:...
    > Hello all:
    >
    > From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
    > events for the datagrid require that the datagrid's enableVireState
    > property
    > is set to true. Does the page-level enableViewState property affect the
    > control's enableViewState property?
    >
    > I am trying to understand this result: when I have the page's
    > enableViewState turned off and the control's enableViewState turned on,
    > the
    > ItemCommand event never fires whereas if the page's enableViewState
    > property
    > is turned on, the ItemCommand event does fire.
    >
    > Does anyone understadn this?
    >
    > TIA,
    > --
    > Joe
    >
    > VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation
     
    S. Justin Gengo, Oct 26, 2005
    #2
    1. Advertising

  3. Justin,

    Thank you very much.

    --
    Joe

    VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation


    "S. Justin Gengo" wrote:

    > Joe,
    >
    > Yes, if you turn off viewstate for a page it is also turned off for every
    > control placed on the page no matter what the control itself is set to.
    >
    > --
    > Sincerely,
    >
    > S. Justin Gengo, MCP
    > Web Developer / Programmer
    >
    > www.aboutfortunate.com
    >
    > "Out of chaos comes order."
    > Nietzsche
    > "Joe" <> wrote in message
    > news:...
    > > Hello all:
    > >
    > > From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
    > > events for the datagrid require that the datagrid's enableVireState
    > > property
    > > is set to true. Does the page-level enableViewState property affect the
    > > control's enableViewState property?
    > >
    > > I am trying to understand this result: when I have the page's
    > > enableViewState turned off and the control's enableViewState turned on,
    > > the
    > > ItemCommand event never fires whereas if the page's enableViewState
    > > property
    > > is turned on, the ItemCommand event does fire.
    > >
    > > Does anyone understadn this?
    > >
    > > TIA,
    > > --
    > > Joe
    > >
    > > VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation

    >
    >
    >
     
    =?Utf-8?B?Sm9l?=, Oct 26, 2005
    #3
  4. Joe,

    Anytime.

    --
    Sincerely,

    S. Justin Gengo, MCP
    Web Developer / Programmer

    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzsche
    "Joe" <> wrote in message
    news:D...
    > Justin,
    >
    > Thank you very much.
    >
    > --
    > Joe
    >
    > VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation
    >
    >
    > "S. Justin Gengo" wrote:
    >
    >> Joe,
    >>
    >> Yes, if you turn off viewstate for a page it is also turned off for every
    >> control placed on the page no matter what the control itself is set to.
    >>
    >> --
    >> Sincerely,
    >>
    >> S. Justin Gengo, MCP
    >> Web Developer / Programmer
    >>
    >> www.aboutfortunate.com
    >>
    >> "Out of chaos comes order."
    >> Nietzsche
    >> "Joe" <> wrote in message
    >> news:...
    >> > Hello all:
    >> >
    >> > From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
    >> > events for the datagrid require that the datagrid's enableVireState
    >> > property
    >> > is set to true. Does the page-level enableViewState property affect
    >> > the
    >> > control's enableViewState property?
    >> >
    >> > I am trying to understand this result: when I have the page's
    >> > enableViewState turned off and the control's enableViewState turned on,
    >> > the
    >> > ItemCommand event never fires whereas if the page's enableViewState
    >> > property
    >> > is turned on, the ItemCommand event does fire.
    >> >
    >> > Does anyone understadn this?
    >> >
    >> > TIA,
    >> > --
    >> > Joe
    >> >
    >> > VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation

    >>
    >>
    >>
     
    S. Justin Gengo, Oct 26, 2005
    #4
    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. Dave Verwer

    EnableViewState = false not working

    Dave Verwer, Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    698
    Dave Verwer
    Jul 10, 2003
  2. Justin Crossley
    Replies:
    0
    Views:
    442
    Justin Crossley
    Nov 8, 2004
  3. AC
    Replies:
    1
    Views:
    1,882
    Marina
    Jul 28, 2005
  4. pabbu
    Replies:
    8
    Views:
    757
    Marc Boyer
    Nov 7, 2005
  5. haiwen
    Replies:
    0
    Views:
    201
    haiwen
    Dec 14, 2004
Loading...

Share This Page