Groups | Blog | Home
all groups > c# > february 2005 >

c# : html checkboxes in datagrid



Ansil MCAD
2/2/2005 8:35:03 PM
hi
i have written on article on it long time ago
check this link
http://www.codeproject.com/aspnet/ChkBoxInGrid.asp

regards
Ansil
Trivandrum
anzboy@gmail.com


[quoted text, click to view]
a NO[at]SPAM b.com
2/2/2005 11:37:23 PM
i have a datagrid with a column of html checkboxes which are created
dynamically. The id/name of the checkboxes comes from a value in the
database.

on a postback, i would like to get all the checked checkboxes, in the
same way old asp would.
i.e. for each control in Request.Form...

i am doing it this way because the datagrid will contain too much info
to maintain viewstate; i don't want to use session variables to hold
data key info; i don't want to re-create server checkboxes to get
whether they've been checked.

in any case, why doesn't matter. i would just like to know if someone
could provide me with loop code to get html checkbox names (which
have been checked obviously) which have been created dynamically in a
datagrid.
a NO[at]SPAM b.com
2/3/2005 5:48:28 PM

nice article, but like i said in my original post, i don't want to
maintain viewstate on the datagrid like you have in your example,
because there will be too much data being maintained.



On Wed, 2 Feb 2005 20:35:03 -0800, "=?Utf-8?B?QW5zaWwgTUNBRA==?="
[quoted text, click to view]
AddThis Social Bookmark Button