Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
Questionacessing an id from object sender Pin
brsecu9-Jun-08 10:55
brsecu9-Jun-08 10:55 
AnswerRe: acessing an id from object sender Pin
Edmundisme9-Jun-08 11:07
Edmundisme9-Jun-08 11:07 
GeneralRe: acessing an id from object sender Pin
brsecu10-Jun-08 2:05
brsecu10-Jun-08 2:05 
QuestionDatatable query Pin
NewToAspDotNet9-Jun-08 9:24
NewToAspDotNet9-Jun-08 9:24 
QuestionCAPTCHA Custom Server Control Pin
rgfirefly249-Jun-08 9:24
rgfirefly249-Jun-08 9:24 
AnswerRe: CAPTCHA Custom Server Control Pin
Christian Graus9-Jun-08 13:23
protectorChristian Graus9-Jun-08 13:23 
GeneralRe: CAPTCHA Custom Server Control Pin
rgfirefly2410-Jun-08 5:06
rgfirefly2410-Jun-08 5:06 
QuestionHow to Select All CheckBoxes while GridView paging is allowed? Pin
nature02769-Jun-08 8:12
nature02769-Jun-08 8:12 
I have 2 button (1) Select All (2)DeSelect All button. Select All button should select all the checkboxes in the GridView...Importantly when the paging is allowed...
The problem is, when paging is allowed, the checkbox is checked only in the first page not on the second page and the subsequent ones. The following code shows the code.

How can I get every check boxes selected? how to do with Javascript? If possible, can we do without Javascript.. with C#.

Please help.

protected void Select_Click(object sender, EventArgs e)
{

foreach (GridViewRow row in GridView1.Rows)
{
CheckBox chk = row.FindControl("chkSelect") as CheckBox;

if (chk.Checked == false)
{
chk.Checked = true;
}
}

}

Sanjeev

AnswerRe: How to Select All CheckBoxes while GridView paging is allowed? Pin
Member 84594004-Dec-11 19:47
Member 84594004-Dec-11 19:47 
QuestionHashtable containing DataTables [modified] Pin
steven33119-Jun-08 8:08
steven33119-Jun-08 8:08 
QuestionHow to create an undo function in a picturebox?(Console Application,using windows form) [modified] Pin
MrAdar9-Jun-08 7:46
MrAdar9-Jun-08 7:46 
AnswerRe: How to create an undo function in a picturebox?(Console Application,using windows form) Pin
Pete O'Hanlon9-Jun-08 9:16
mvePete O'Hanlon9-Jun-08 9:16 
AnswerRe: How to create an undo function in a picturebox?(Console Application,using windows form) Pin
Edmundisme9-Jun-08 11:09
Edmundisme9-Jun-08 11:09 
AnswerRe: How to create an undo function in a picturebox?(Console Application,using windows form) Pin
Christian Graus9-Jun-08 13:22
protectorChristian Graus9-Jun-08 13:22 
QuestionC# TreeView Control: How to color the nodes from the parent node to the last selected child node Pin
nikhilkardale9-Jun-08 7:35
nikhilkardale9-Jun-08 7:35 
QuestionHow to get all the shares from a machine Pin
matt23lucier9-Jun-08 6:57
matt23lucier9-Jun-08 6:57 
AnswerRe: How to get all the shares from a machine Pin
Ravi Bhavnani9-Jun-08 7:09
professionalRavi Bhavnani9-Jun-08 7:09 
GeneralRe: How to get all the shares from a machine Pin
matt23lucier9-Jun-08 7:17
matt23lucier9-Jun-08 7:17 
GeneralRe: How to get all the shares from a machine Pin
matt23lucier9-Jun-08 7:58
matt23lucier9-Jun-08 7:58 
Questionmaking a white black smooth animation Pin
Sajjad Izadi9-Jun-08 6:39
Sajjad Izadi9-Jun-08 6:39 
AnswerRe: making a white black smooth animation Pin
Christian Graus9-Jun-08 6:40
protectorChristian Graus9-Jun-08 6:40 
GeneralRe: making a white black smooth animation Pin
Sajjad Izadi9-Jun-08 6:49
Sajjad Izadi9-Jun-08 6:49 
GeneralRe: making a white black smooth animation Pin
Christian Graus9-Jun-08 7:26
protectorChristian Graus9-Jun-08 7:26 
QuestionRe: making a white black smooth animation [modified] Pin
Sajjad Izadi9-Jun-08 7:49
Sajjad Izadi9-Jun-08 7:49 
AnswerRe: making a white black smooth animation Pin
Christian Graus9-Jun-08 13:25
protectorChristian Graus9-Jun-08 13:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.