DG lose viewstate

A

Amir

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top