1
Answer

how to write checkbox selection code from aspxto codebehind

narasiman rao

narasiman rao

8y
205
1
 My code as follows
 
 
$(".chkboxPDC").each (function (i) {
 
if ($(".chkboxPDC")[i].checked == true) {
 
PDCAssociatecount++;
 
}
 }
 
 
in Run mode as follows
 
 
Assoicateid      Project name       Project dedicated cab     
 
   1                         A                        Checkbox
 
i want one submit as follows
 
 in submit i want to write the whether checkbox selected or not.
 
protected void BtnSubmitClick(object sender, EventArgs e)
{
    //In submit button i want to call chkboxPDC function
 
 
  In submit button i want to call chkboxPDC function  for that how can i do codebehind page using c#.
Answers (1)