DG lose viewstate

Discussion in 'ASP .Net Datagrid Control' started by Amir, Oct 15, 2004.

  1. Amir

    Amir Guest

    Hi all
    I have only a Datagrid and a submit button on a form.
    I use 2 template columns and some bound columns in my grid.
    My code in the event handler of submit button's click count the datagrid
    items with process it's items with a for loop.

    But "Dg.Items.Count" is ZERO.

    When I debug the code, after postback in Page_load "Dg.Items.Count" is not
    ZERO.
    But in click's event handler it return zero.

    It seems the DG lose it's data in viewstate between to method (Page_load &
    click's event handler).
    I instlled the .NET framework 1.1 SP1.

    I'm very Penitent that have not switch to J2EE till yet.
     
    Amir, Oct 15, 2004
    #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. =?Utf-8?B?d2lsYnVyODhAY29tbXVuaXR5Lm5vc3BhbQ==?=

    session state variables across asp.net web apps... We lose them!

    =?Utf-8?B?d2lsYnVyODhAY29tbXVuaXR5Lm5vc3BhbQ==?=, Mar 7, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    2,930
    =?Utf-8?B?d2lsYnVyODhAY29tbXVuaXR5Lm5vc3BhbQ==?=
    Mar 9, 2005
  2. MS News \(MS ILM\)
    Replies:
    1
    Views:
    300
    MS News \(MS ILM\)
    Aug 22, 2003
  3. Gerald Klein

    Whay do I lose viewstate in my usercontrol

    Gerald Klein, Jan 24, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    418
    Gerald Klein
    Jan 24, 2004
  4. gnewsgroup
    Replies:
    2
    Views:
    532
    gnewsgroup
    Oct 31, 2007
  5. Amir

    Viewstate lose data

    Amir, Dec 28, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    123
Loading...

Share This Page