grid view
Hello to All
please solve my problen soon
i am using following code to get the checked value of text box.
but always it fires false:
1) gvcallerlist is name of grid
2) chkGridSelect is name of check box
protected void btnNext_Click(object sender, EventArgs e)
{
CheckBox chkSelected;
foreach (GridViewRow gv in gvCallerList.Rows)
{
chkSelected = (CheckBox)gv.FindControl("chkGridSelect");
if (chkSelected.Checked)
{
//stNameGrid = ((Label) gv.FindControl("lblListNames").text;
Response.Redirect("default.aspx");
}
}
if (ListNameGrid == "")
{
string Message = "<script language='javascript'>alert('Please Select one Calling Plan from the List.');</script>";
Page.RegisterStartupScript("SelectRecord", Message);
//ClientScript.RegisterStartupScript( "Message",Message);
}
regards,
Munish bhatia
thanks......
__________________
thanks......
|