Click here to Skip to main content
15,911,646 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
Not Active14-Jun-07 2:55
mentorNot Active14-Jun-07 2:55 
GeneralRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
kidus114-Jun-07 3:39
kidus114-Jun-07 3:39 
GeneralRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
Not Active14-Jun-07 3:53
mentorNot Active14-Jun-07 3:53 
AnswerRe: How to select and hyperlink the contents of a row in a grid view dynamically Pin
chand1013-Jun-07 18:41
chand1013-Jun-07 18:41 
QuestionStumped GridView Loop Pin
bjjonesey13-Jun-07 10:04
bjjonesey13-Jun-07 10:04 
AnswerRe: Stumped GridView Loop Pin
Venkatesh Mookkan13-Jun-07 17:05
Venkatesh Mookkan13-Jun-07 17:05 
AnswerRe: Stumped GridView Loop Pin
bjjonesey14-Jun-07 4:43
bjjonesey14-Jun-07 4:43 
QuestionDatagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
wood060113-Jun-07 9:16
wood060113-Jun-07 9:16 
I need to iterate through the rows in a datagrid and record the number of rows that are checked (checkboxes in a templatecolumn). I need to do that on the client side. The object of this is to either submit if none of the checkboxes are checked or prompt the user to save records (via javascript confirm). The code-
function dtgValidateCheckBox(grdid, objlist)
{
//if user clicks on "Search", then this method
//will check to see if there are products
//selected but not saved. User is prompted
//to either continue and loose items in the cart
//or cancel and then click on save items to cart.
//attribute is added from the server side to fire this method.

var chkbox;
var i=20;
var iCount=0;

chkbox=document.getElementById(grdid + "__ctl" + i + "_" + objlist);
while(chkbox!=null){
if(chkbox.checked == true)
{
iCount++;
}

i=i+1;
chkbox=document.getElementById(grdid +
'__ctl' + i + '_' + objlist);

}

if(iCount>0)
{
return confirm("There are unsaved items in your cart. Do you wish to continue?");
}
}

Any Ideas?
AnswerRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
Sankar Komma 13-Jun-07 9:57
Sankar Komma 13-Jun-07 9:57 
GeneralRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
wood060113-Jun-07 10:04
wood060113-Jun-07 10:04 
GeneralRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
Sankar Komma 13-Jun-07 10:07
Sankar Komma 13-Jun-07 10:07 
GeneralRe: Datagrid - Counting the Number of Checkboxes that are Checked Within a Datagrid Pin
wood060113-Jun-07 12:00
wood060113-Jun-07 12:00 
Questionusing master page Pin
Tiger45613-Jun-07 6:17
Tiger45613-Jun-07 6:17 
AnswerRe: using master page Pin
ednrgc13-Jun-07 7:04
ednrgc13-Jun-07 7:04 
AnswerRe: using master page Pin
Not Active13-Jun-07 11:29
mentorNot Active13-Jun-07 11:29 
GeneralRe: using master page Pin
Tiger45613-Jun-07 20:22
Tiger45613-Jun-07 20:22 
GeneralRe: using master page Pin
Not Active14-Jun-07 2:00
mentorNot Active14-Jun-07 2:00 
AnswerAccess text box contents in Edit view [modified] Pin
bjjonesey13-Jun-07 5:25
bjjonesey13-Jun-07 5:25 
Questioncrystal Report ActiveX Pin
Ali el13-Jun-07 5:24
Ali el13-Jun-07 5:24 
QuestionIs it possible to turn off the RowEditing event in a grid view? Pin
MBursill13-Jun-07 5:16
MBursill13-Jun-07 5:16 
AnswerRe: Is it possible to turn off the RowEditing event in a grid view? Pin
ali bagheri13-Jun-07 5:40
ali bagheri13-Jun-07 5:40 
GeneralRe: Is it possible to turn off the RowEditing event in a grid view? Pin
MBursill13-Jun-07 6:35
MBursill13-Jun-07 6:35 
QuestionSessionStateProvider Pin
Russell Jones13-Jun-07 5:15
Russell Jones13-Jun-07 5:15 
QuestionConvert to double in javascript Pin
Khan.Bangash13-Jun-07 5:12
Khan.Bangash13-Jun-07 5:12 
AnswerRe: Convert to double in javascript Pin
Manas Bhardwaj13-Jun-07 5:16
professionalManas Bhardwaj13-Jun-07 5:16 

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.