473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

html checkboxes in datagrid

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.

Nov 16 '05 #1
2 1698
hi
i have written on article on it long time ago
check this link
http://www.codeproject.com/aspnet/ChkBoxInGrid.asp

regards
Ansil
Trivandrum
an****@gmail.com
"Mortar" wrote:
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.

Nov 16 '05 #2

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==?="
<An*******@discussions.microsoft.com> wrote:
hi
i have written on article on it long time ago
check this link
http://www.codeproject.com/aspnet/ChkBoxInGrid.asp

regards
Ansil
Trivandrum
an****@gmail.com
"Mortar" wrote:
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.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kannadasan | last post by:
Hi all I am using Datagrid where i place checkboxes in one column with some other columns.The purpose is, if i select the checkboxes and clicks the submit buton Email has to go to the selected...
7
by: DJ Dev | last post by:
Hi All, I have a complex problem. I have dropdownlists (usually 3-5) and the user selects some value from these and for each value selected, datagrids are shown to the user. I am creating the...
2
by: john | last post by:
I posted this question to comp.lang.javascript but didn't get a response, so I'll try here. I am using ASP.NET and I have a datagrid. One of the columns in my grid is all checkboxes. When the...
0
by: Angela | last post by:
Hi I have a datagrid with checkboxes besides a list of names. What I want is for the user to select the checkboxes and press 'Preview' and a new window opens with a print friendly list of the...
2
by: Mortar | last post by:
i have a datagrid with 2 columns. the 1st column contains an id which will be used by the database for the selected checkbox records. the 2nd column is a template column containing a server...
4
by: Jim Bancroft | last post by:
Hi everyone, I'm using a DataGrid with TemplateColumns. My DataGrid is located in a cell of an asp:Table. I did this so it's positioned correctly onscreen. One of the DataGrid's...
3
by: GatorBait | last post by:
Hi all, I'm using a datagrid for the first time and I am running into some problems that I hope someone can help me with. I have a datagrid with 18 rows and 5 columns....column 1 is just text...
7
by: rn5a | last post by:
The first column of a DataGrid has a CheckBox for all the rows. I want that when users check a CheckBox, the BackColor of that entire row in the DataGrid should change to a different color. To...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.