Thread: grid view
View Single Post
  #1 (permalink)  
Old May 14th, 2007, 03:50 AM
MunishBhatia MunishBhatia is offline
Friend of Wrox
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default 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......