Skip to content
Loading
Click event on name(suresh) not working  
  •   
  •   
  •   
  • <%-- "float:right; ">  
  • "btnaddtopipeline" runat="server" ToolTip="Add to pipeline" Text="Add to pipeline" CssClass="addtopipeline" style="font-family:'Segoe UI'; font-size: 10px; text-align:center; " />  
  • "btnconducttechscreen" runat="server" ToolTip="Conduct tech screen" Text="Conduct tech screen" CssClass="conducttechscreen" style="font-family:'Segoe UI'; font-size: 10px; text-align:center; " />  
  • "btncreatevideoresume" runat="server" ToolTip="Video resume" Text="video resume" CssClass="createvideoresume" style="font-family:'Segoe UI'; font-size: 10px; text-align:center; " />  
  • --%>  
  •   
  • "tabs-2" >  
  •   
  • <%-- "tabs-3">  
  • --%>  
  •   
  •   
  •   
  •   
  •   
  • CS Page:
    1. using System;  
    2. using System.Web.UI.WebControls;  
    3. using System.Data;  
    4. namespace Findcandidates  
    5. {  
    6. public partial class _default : System.Web.UI.Page  
    7. {  
    8. protected void Page_Load(object sender, EventArgs e)  
    9. {  
    10. if (!this.IsPostBack)  
    11. {  
    12. DataTable dt = new DataTable();  
    13. dt.Columns.AddRange(new DataColumn[8] { new DataColumn("resumetoJDmatch"), new DataColumn("mandatoryskillmatch"), new DataColumn("Datecreated"), new DataColumn("Name"), new DataColumn("phonenumber"), new DataColumn("email"), new DataColumn("Location"), new DataColumn("Relocation") });  
    14. dt.Rows.Add( "100%","90%""13-may-2019","Suresh ","1234567890","[email protected]""san Jose,CA""Y");  
    15. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    16. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    17. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    18. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    19. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    20. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    21. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    22. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    23. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    24. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    25. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    26. dt.Rows.Add("100%""90%""13-may-2019""Suresh ""1234567890""[email protected]""san Jose,CA""Y");  
    27. GridView1.DataSource = dt;  
    28. GridView1.DataBind();  
    29. this.BindGrid();  
    30. }  
    31. }  
    32. protected void OnPageIndexChanging(object sender, GridViewPageEventArgs e)  
    33. {  
    34. //GridView2.PageIndex = e.NewPageIndex;  
    35. //this.BindGrid();  
    36. //ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup();", true);  
    37. }  
    38. protected void OnRowDataBound(object sender, GridViewRowEventArgs e)  
    39. {  
    40. DataTable dt = new DataTable();  
    41. dt.Columns.AddRange(new DataColumn[8] { new DataColumn("resumetoJDmatch"), new DataColumn("mandatoryskillmatch"), new DataColumn("Datecreated"), new DataColumn("Name"), new DataColumn("phonenumber"), new DataColumn("email"), new DataColumn("Location"), new DataColumn("Relocation") });  
    42. foreach (GridViewRow row in GridView1.Rows)  
    43. {  
    44. if (row.RowType == DataControlRowType.DataRow)  
    45. {  
    46. CheckBox checkbox = (row.Cells[0].FindControl("checkbox"as CheckBox);  
    47. if (checkbox.Checked)  
    48. {  
    49. string resumetoJDmatch = row.Cells[1].Text;  
    50. string mandatoryskillmatch = row.Cells[2].Text;  
    51. string Datecreated = row.Cells[3].Text;  
    52. string Name = row.Cells[4].Text;  
    53. string phonenumber = row.Cells[5].Text;  
    54. string email = row.Cells[6].Text;  
    55. string Location = row.Cells[7].Text;  
    56. string Relocation = row.Cells[8].Text;  
    57. dt.Rows.Add(resumetoJDmatch, mandatoryskillmatch, Datecreated, Name, phonenumber, email, Location,Relocation);  
    58. }  
    59. }  
    60. }  
    61. if (e.Row.RowType == DataControlRowType.DataRow)  
    62. {  
    63. if (e.Row.RowIndex == 0)  
    64. e.Row.Style.Add("height""0px");  
    65. }  
    66. }  
    67. }  
    68. }  
    Thank you in advance!!

    1 Reply

    Know the answer? Post it — somebody with the same question will find it here.