Click here to Skip to main content
15,892,643 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Display the users status Pin
N a v a n e e t h20-Nov-07 0:51
N a v a n e e t h20-Nov-07 0:51 
QuestionComaprison Validator Not Working Pin
sabby200619-Nov-07 23:33
sabby200619-Nov-07 23:33 
AnswerRe: Comaprison Validator Not Working Pin
Sandeep Akhare19-Nov-07 23:46
Sandeep Akhare19-Nov-07 23:46 
AnswerRe: Comaprison Validator Not Working Pin
John-ph19-Nov-07 23:52
John-ph19-Nov-07 23:52 
AnswerRe: Comaprison Validator Not Working Pin
Gandalf_TheWhite20-Nov-07 0:08
professionalGandalf_TheWhite20-Nov-07 0:08 
QuestionCheckbox in DataList Pin
Vijayitsb19-Nov-07 23:05
Vijayitsb19-Nov-07 23:05 
AnswerRe: Checkbox in DataList Pin
Prateek G19-Nov-07 23:12
Prateek G19-Nov-07 23:12 
AnswerRe: Checkbox in DataList Pin
John-ph19-Nov-07 23:48
John-ph19-Nov-07 23:48 
Vijayitsb wrote:
for (int i = 0; i < Dgr_hotel.Items.Count - 1; i++)
{
((CheckBox)Dgr_hotel.FindControl("chk_Box")).Checked = true;

}

Vijayitsb wrote:
when i click checkall button All checkbox are selected.


How cum? In the above given code you are not navigating through the items of the DataList Control to find the CheckBox and mark it Checked. Most importantly the i value is not used anywhere in the loop. It will not serve your purpose in any way.

You can try the below code to do the same
foreach (DataListItem Items in DataList1.Items) { 
   ((CheckBox)Items.FindControl("chkBox")).Checked = true; 
} 


- Regards -
   JON

     Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


Questionworking with keyboard navigations Pin
rdvsharma19-Nov-07 23:05
rdvsharma19-Nov-07 23:05 
QuestionWebsite not looking good in Mozilla Pin
.NET- India 19-Nov-07 23:02
.NET- India 19-Nov-07 23:02 
AnswerRe: Website not looking good in Mozilla Pin
Gandalf_TheWhite21-Nov-07 2:09
professionalGandalf_TheWhite21-Nov-07 2:09 
QuestionASP.NET 2.0 Web Reference map Pin
a.pepe19-Nov-07 22:44
a.pepe19-Nov-07 22:44 
QuestionDynamic update panels Pin
Mr.Sam19-Nov-07 22:12
Mr.Sam19-Nov-07 22:12 
QuestionProcess.Start runs in background Pin
cool8319-Nov-07 21:42
cool8319-Nov-07 21:42 
AnswerRe: Process.Start runs in background Pin
Sun Rays19-Nov-07 21:47
Sun Rays19-Nov-07 21:47 
GeneralRe: Process.Start runs in background Pin
cool8319-Nov-07 21:50
cool8319-Nov-07 21:50 
GeneralRe: Process.Start runs in background Pin
Sun Rays19-Nov-07 21:54
Sun Rays19-Nov-07 21:54 
GeneralCheck this Pin
Sun Rays19-Nov-07 22:18
Sun Rays19-Nov-07 22:18 
AnswerRe: Process.Start runs in background Pin
N a v a n e e t h19-Nov-07 21:54
N a v a n e e t h19-Nov-07 21:54 
GeneralRe: Process.Start runs in background Pin
cool8319-Nov-07 22:02
cool8319-Nov-07 22:02 
GeneralRe: Process.Start runs in background Pin
John-ph19-Nov-07 22:08
John-ph19-Nov-07 22:08 
GeneralRe: Process.Start runs in background Pin
N a v a n e e t h19-Nov-07 22:19
N a v a n e e t h19-Nov-07 22:19 
QuestionRetreiving only active users from LDAP Pin
samerh19-Nov-07 21:00
samerh19-Nov-07 21:00 
AnswerRe: Retreiving only active users from LDAP Pin
Sandeep Akhare19-Nov-07 21:06
Sandeep Akhare19-Nov-07 21:06 
GeneralRe: Retreiving only active users from LDAP Pin
samerh19-Nov-07 21:08
samerh19-Nov-07 21:08 

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.