Click here to Skip to main content
15,913,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow do i get certain types of controls from a Page (Control)? Pin
boy.pockets9-Jun-08 16:21
boy.pockets9-Jun-08 16:21 
AnswerRe: How do i get certain types of controls from a Page (Control)? Pin
Christian Graus9-Jun-08 16:39
protectorChristian Graus9-Jun-08 16:39 
QuestionReorderList Problems in IE6 Pin
expinch9-Jun-08 11:01
expinch9-Jun-08 11:01 
QuestionGridview Particular Column goes to Next Row Pin
Sarfaraj Ahmed9-Jun-08 10:52
Sarfaraj Ahmed9-Jun-08 10:52 
AnswerRe: Gridview Particular Column goes to Next Row Pin
eyeseetee9-Jun-08 21:53
eyeseetee9-Jun-08 21:53 
GeneralRe: Gridview Particular Column goes to Next Row Pin
Sarfaraj Ahmed10-Jun-08 7:43
Sarfaraj Ahmed10-Jun-08 7:43 
Questionput an aspx button into DotNetNuke Pin
dsidave9-Jun-08 8:13
dsidave9-Jun-08 8:13 
QuestionHow to Select All Checkboxes while GridView Paging is Allowed? Pin
nature02769-Jun-08 8:11
nature02769-Jun-08 8:11 
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)<br />
 { <br />
       <br />
        foreach (GridViewRow row in GridView1.Rows)<br />
        {<br />
            CheckBox chk = row.FindControl("chkSelect") as CheckBox;<br />
<br />
            if (chk.Checked == false)<br />
            {<br />
                chk.Checked = true;<br />
            }<br />
        }<br />
<br />
    }


Sanjeev

AnswerRe: How to Select All Checkboxes while GridView Paging is Allowed? Pin
boy.pockets9-Jun-08 16:11
boy.pockets9-Jun-08 16:11 
AnswerRe: How to Select All Checkboxes while GridView Paging is Allowed? Pin
John-ph9-Jun-08 21:39
John-ph9-Jun-08 21:39 
QuestionHow to get retrieve a page from any website and store all urls on that page into database?? Pin
Technobizz9-Jun-08 8:07
Technobizz9-Jun-08 8:07 
AnswerRe: How to get retrieve a page from any website and store all urls on that page into database?? Pin
leckey9-Jun-08 9:22
leckey9-Jun-08 9:22 
QuestionHow To Receive Input From A BarCode Reader Pin
Tomic9-Jun-08 8:04
Tomic9-Jun-08 8:04 
AnswerRe: How To Receive Input From A BarCode Reader Pin
StevenWalsh9-Jun-08 9:44
StevenWalsh9-Jun-08 9:44 
GeneralRe: How To Receive Input From A BarCode Reader Pin
Tomic9-Jun-08 22:36
Tomic9-Jun-08 22:36 
QuestionTo check the input and output of the webservice functionality Pin
indian1439-Jun-08 7:36
indian1439-Jun-08 7:36 
AnswerRe: To check the input and output of the webservice functionality Pin
Vasudevan Deepak Kumar11-Jun-08 1:42
Vasudevan Deepak Kumar11-Jun-08 1:42 
QuestionEditing a newly added gridview row bound by a generic list. Pin
Steve Holdorf9-Jun-08 7:11
Steve Holdorf9-Jun-08 7:11 
GeneralError Handling Recommendations Pin
Brady Kelly9-Jun-08 6:34
Brady Kelly9-Jun-08 6:34 
GeneralRe: Error Handling Recommendations Pin
N a v a n e e t h9-Jun-08 16:33
N a v a n e e t h9-Jun-08 16:33 
Questiongridview issue Pin
trilokharry9-Jun-08 5:38
trilokharry9-Jun-08 5:38 
QuestionInserting a blank row to a gridview bound to a generic list Pin
Steve Holdorf9-Jun-08 5:25
Steve Holdorf9-Jun-08 5:25 
AnswerRe: Inserting a blank row to a gridview bound to a generic list Pin
nature02769-Jun-08 8:04
nature02769-Jun-08 8:04 
Questionassign value Pin
trilokharry9-Jun-08 3:52
trilokharry9-Jun-08 3:52 
AnswerRe: assign value Pin
eyeseetee9-Jun-08 3:52
eyeseetee9-Jun-08 3:52 

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.