Mas

Mas

  • NA
  • 478
  • 73.2k

Click event on name(suresh) not working

Mar 31 2020 4:22 AM
Hello members,
 
Here i am trying to open the popup, when i am clicking on the name(sureh) field.
 
Dude to multiple jquery's the bootstrap.min.js is not executing.
 
Can anyone guide me here.
 
Below am adding the code.
 
ASPX page:
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Findcandidates._default" %>  
  2. <!DOCTYPE html>  
  3. <html xmlns="http://www.w3.org/1999/xhtml">  
  4. <head runat="server">  
  5. <meta charset="utf-8" />  
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />  
  7. <title>Candidate details</title>  
  8. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>  
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0" />  
  10. <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />  
  11. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>  
  12. <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" />  
  13. <link rel="stylesheet" href="/resources/demos/style.css" />  
  14. <script src="https://code.jquery.com/jquery-1.12.4.js"></script>  
  15. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>  
  16. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>  
  17. <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>  
  18. <link href="Talpal_font.css" rel="stylesheet" />  
  19. <script type="text/javascript">  
  20. $(function () {  
  21. $("[id*=Name]").click(function () {  
  22. suresh();  
  23. return false;  
  24. });  
  25. });  
  26. function suresh() {  
  27. $("#dialog").dialog({  
  28. width: 400,  
  29. modal: true  
  30. });  
  31. }  
  32. $(function () {  
  33. $( "#tabs" ).tabs();  
  34. });  
  35. $(document).ready(function() {  
  36. var $submit = $("#btnbulk").hide(),  
  37. $cbs = $("input[type='checkbox']").on('change'function() {  
  38. $submit.toggle( $cbs.is(":checked") );  
  39. });  
  40. });  
  41. $("[id*=btnbulk]").live("click"function () {  
  42. $("#modal_dialog").dialog({  
  43. });  
  44. return false;  
  45. });  
  46. </script>  
  47. <style>  
  48. .ui-dialog {  
  49. width:500px;  
  50. }  
  51. .ui-widget-header{  
  52. border:white;  
  53. background:white;  
  54. }  
  55. #GridView1,#GridView2 {  
  56. font-family: Segoe UI;  
  57. font-size: 10px;  
  58. }  
  59. .btn-bitbucket,.btnbulkemail,  
  60. .addtopipeline,.conducttechscreen,  
  61. .createvideoresume,.btnsendemail{  
  62. color: #fff;  
  63. background-color:#205081;  
  64. border-color:rgba(0,0,0,0.2);  
  65. }  
  66. #GridView1,#GridView2 {  
  67. font-family: 'Segoe UI';  
  68. border-collapse: collapse;  
  69. width: 100%;  
  70. font-size: 10px;  
  71. }  
  72. #GridView1 td, #GridView1 th, #GridView2 td, #GridView2 th {  
  73. border: 1px solid #ddd;  
  74. text-align:center;  
  75. }  
  76. GridView1 tr:nth-child(even),GridView2 tr:nth-child(even) {  
  77. background-color: #f2f2f2;  
  78. }  
  79. #GridView1 th,#GridView2 th {  
  80. padding-top: 4px;  
  81. padding-bottom: 4px;  
  82. text-align: center;  
  83. background-color: cornflowerblue;  
  84. color: white;  
  85. width:20px;  
  86. font-size:11px!important;  
  87. }  
  88. .ui-tabs .ui-tabs-panel{  
  89. padding:0px;  
  90. }  
  91. .modal_dialog{  
  92. width:400px!important;  
  93. }  
  94. .move{  
  95. padding:22px;  
  96. }  
  97. .auto-style1 {  
  98. width: 300px;  
  99. }  
  100. .auto-style2 {  
  101. width: 222px;  
  102. }  
  103. </style>  
  104. </head>  
  105. <body>  
  106. <form runat="server">  
  107. <table>  
  108. <div class="row">  
  109. <table style="width:100%;">  
  110. <tr>  
  111. <td style="width:40%;padding-left:18px">  
  112. <table style="width:100%">  
  113. <tr>  
  114. <td>  
  115. <span class="content-text-black"> Job title :</span><span style="color:red;font-size:11px">*</span><br />  
  116. <%--<asp:RequiredFieldValidator ID="jobtitlevalidator" runat="server" ErrorMessage="Mandatory" ControlToValidate="txtjobtitle" ForeColor="Red" ValidationGroup="find_cand_validation" Display="Dynamic" CssClass="content-text-black" style="margin-bottom:10px;">  
  117. </asp:RequiredFieldValidator>--%>  
  118. <asp:TextBox ID="txtjobtitle" Width="92%" runat="server" TabIndex="1" class="content-text-black"></asp:TextBox>  
  119. </td>  
  120. </tr>  
  121. <tr>  
  122. <td>  
  123. <span class="content-text-black"> Job description :</span><span style="color:red;font-size:11px">*</span>  
  124. <%--<asp:RequiredFieldValidator ID="jobdescvalidator" runat="server" ErrorMessage="Mandatory" ControlToValidate="txtJobdesc" ForeColor="Red" ValidationGroup="find_cand_validation" Display="Dynamic" CssClass="content-text-black">  
  125. </asp:RequiredFieldValidator>--%>  
  126. <asp:TextBox ID="txtJobdesc" runat="server" Width="92%" Rows="6" ReadOnly="false" TextMode="MultiLine" placeholder="Type Job description" cssClass="content-text-black" TabIndex="2" ></asp:TextBox>  
  127. </td>  
  128. </tr>  
  129. </table>  
  130. </td>  
  131. <td style="width:40%">  
  132. <table style ="width:100%">  
  133. <tr>  
  134. <td>  
  135. <span class="content-text-black"> Mandatory skills to be successful in this role:</span><span style="color:red;font-size:11px">*</span>  
  136. <%--<asp:RequiredFieldValidator ID="mand_skill_validator" runat="server" ErrorMessage="Mandatory" ControlToValidate="txt_mandatory_skills" ForeColor="Red" ValidationGroup="find_cand_validation" Display="Dynamic" CssClass="content-text-black" style="margin-bottom:10px;">  
  137. </asp:RequiredFieldValidator><br />--%>  
  138. <asp:TextBox ID="txt_mandatory_skills" Rows="4" TabIndex="3" TextMode="MultiLine" runat="server" placeholder="Type mandatory skills as comma separated" CssClass="content-text-black" style="margin-bottom:10px;width:500px"></asp:TextBox>  
  139. </td>  
  140. </tr>  
  141. <tr>  
  142. <td>  
  143. <span class="content-text-black">Job location:</span><span style="color:red;font-size:11px">*</span>  
  144. <%--<asp:RequiredFieldValidator ID="currloc_validator" runat="server" ErrorMessage="Mandatory" ControlToValidate="txtcurrloc" ForeColor="Red" ValidationGroup="find_cand_validation" Display="Dynamic" CssClass="content-text-black">  
  145. </asp:RequiredFieldValidator>--%>  
  146. <br />  
  147. <asp:TextBox ID="txtcurrloc" runat="server" placeholder="Type city name" TabIndex="4" CssClass="content-text-black" style="width:450px;margin-bottom:10px;" ></asp:TextBox>  
  148. <asp:Button ID="btnsearch" runat="server" Text="Find" ValidationGroup="find_cand_validation" CssClass="btn btn-bitbucket" style="font-family:'Segoe UI'; font-size:11px; "/>  
  149. </td>  
  150. </tr>  
  151. </table>  
  152. </tr>  
  153. </table>  
  154. </div>  
  155. </table>  
  156. <asp:CheckBox ID="chkloc" AutoPostBack ="true" runat="server" TabIndex="5" Text ="Show only candidates in this location or open to relocation" CssClass="content-text-black move"/>  
  157. <br />  
  158. <asp:Label ID="lblsumofcandidates" runat="server" ForeColor="#0066ff" class="move" style="font-family: 'Segoe UI'; font-size: 12px;" Text="800 candidates matched with your searchsorted by key skills for sucess" ></asp:Label>  
  159. <div id="tabs" style="width:1190px;">  
  160. <ul>  
  161. <li><a href="#tabs-1" style="font-family: 'Segoe UI'; font-size: 11px; text-align: center; width: 160px; ">Sophus it solutions database</a></li>  
  162. <li><a href="#tabs-2" style="font-family: 'Segoe UI'; font-size: 11px; text-align: center; width: 80px; ">ATS(Ceipal)</a></li>  
  163. <%--<li><a href="#tabs-3" style="font-family: 'Segoe UI'; font-size: 10px; text-align: center; width: 80px;">Monster</a></li>--%>  
  164. </ul>  
  165. <div id="tabs-1" style="width:100%">  
  166. <div id="modal_dialog" class="modal-dialog" style="display:none; width:500px; font-family:'Segoe UI'; font-size:10px;" >  
  167. <asp:DropDownList ID="DropDownList1" runat="server" CssClass="dropdown" >  
  168. <asp:ListItem Value="1" Text="select"></asp:ListItem>  
  169. <asp:ListItem Value="2">Avande</asp:ListItem>  
  170. <asp:ListItem Value="3">Infosys</asp:ListItem>  
  171. <asp:ListItem Value="4">Internal</asp:ListItem>  
  172. <asp:ListItem Value="5">UST Global</asp:ListItem>  
  173. <asp:ListItem Value="6">Walt Disney</asp:ListItem>  
  174. <asp:ListItem Value="6">20th Century Fox</asp:ListItem>  
  175. </asp:DropDownList>  
  176. <br />  
  177. <br />  
  178. <asp:TextBox ID="txtbulkemail" runat="server" Height="340px" Width="273px" TextMode="MultiLine" >  
  179. </asp:TextBox>  
  180. <br />  
  181. <asp:Button ID="btnbulkemail" runat="server" CssClass="btnsendemail" Text="Send email" style="float:right;"/>  
  182. </div>  
  183. <asp:Button type="submit" id="btnbulk" Text="Bulk email" runat="server" CssClass="btnbulkemail" style="font-family:'Segoe UI'; font-size: 10px; text-align:center; float:right;" />  
  184. <br /> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" OnRowDataBound="OnRowDataBound" >  
  185. <Columns>  
  186. <asp:TemplateField>  
  187. <ItemTemplate>  
  188. <asp:CheckBox ID="checkbox" class="checkbox1" name = "prog" runat="server" />  
  189. </ItemTemplate>  
  190. </asp:TemplateField>  
  191. <asp:BoundField DataField="resumetoJDmatch" HeaderText="Resume to JD match" HeaderStyle-Width="150px" ItemStyle-Width="150px" />  
  192. <asp:BoundField DataField="mandatoryskillmatch" HeaderText="Key skills to be sucessfull in this role" HeaderStyle-Width="150px" ItemStyle-Width="150px" />  
  193. <asp:BoundField DataField="Datecreated" HeaderText="Date created" HeaderStyle-Width="120px" ItemStyle-Width="120px"/>  
  194. <%-- <asp:TemplateField HeaderText="Name" HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" >  
  195. <ItemTemplate>  
  196. <asp:HyperLink ID="Name" runat="server" text="Name" style="cursor:pointer; "></asp:HyperLink>  
  197. </ItemTemplate>  
  198. </asp:TemplateField>--%>  
  199. <asp:TemplateField HeaderText="Name" SortExpression="" HeaderStyle-Width="200px" ItemStyle-Width="200px">  
  200. <ItemTemplate>  
  201. <asp:LinkButton ID="Name" data-toggle="modal" style="font-family:'Segoe UI'; font-size: 10px;" data-target="#myModal" runat="server" Text="Suresh"></asp:LinkButton>  
  202. <%--<asp:LinkButton ID="Name" runat="server" CommandName="ShowPopup1" OnClientClick="ShowPopup1('dialog');" >Suresh</asp:LinkButton>--%>  
  203. </ItemTemplate>  
  204. </asp:TemplateField>  
  205. <%--<asp:HyperLinkField DataTextField="Name" HeaderText="Name" ItemStyle-Width = "100" DataNavigateUrlFields="Name" DataNavigateUrlFormatString="~/WebForm1.aspx?Id={0}"/>--%>  
  206. <asp:BoundField DataField="phonenumber" HeaderText="Phone number" HeaderStyle-Width="150px" ItemStyle-Width="150px"/>  
  207. <asp:BoundField DataField="email" HeaderText="E-mail" HeaderStyle-Width="200px" ItemStyle-Width="200px"/>  
  208. <asp:BoundField DataField="location" HeaderText="Location" HeaderStyle-Width="130px" ItemStyle-Width="130px"/>  
  209. <asp:BoundField DataField="Relocation" HeaderText="Relocation Y/N" HeaderStyle-Width="100px" ItemStyle-Width="100px"/>  
  210. </Columns>  
  211. </asp:GridView>  
  212. <div class="container">  
  213. <%-- <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="false" OnPageIndexChanging="OnPageIndexChanging"  
  214. PageSize="1" AllowPaging="true">  
  215. <Columns>  
  216. <%--<asp:TemplateField HeaderText = "Take action" ItemStyle-Width ="9%" HeaderStyle-Width="9%" HeaderStyle-ForeColor="white" HeaderStyle-Font-Bold="true" HeaderStyle-CssClass="grid_header">  
  217. <ItemTemplate>  
  218. <%--<asp:Label ID="lblapp_id" runat="server" Text='<% #Eval("applicant_id") %>' Visible="false"></asp:Label>--%>  
  219. <%--<asp:ImageButton ID="img_add_pipeline" ToolTip="Add to pipeline" runat="server" ImageUrl="add_pipeline.png" />  
  220. <asp:ImageButton ID="img_conduct_tech" ToolTip="Conduct tech screen" runat="server" ImageUrl="conduct_tech.png" />  
  221. <asp:ImageButton ID="img_video_res" ToolTip="Video resume" runat="server" ImageUrl="video_resume.png" />  
  222. </ItemTemplate>  
  223. </asp:TemplateField>--%>  
  224. <%--<asp:TemplateField HeaderText="Word resume (download)" ItemStyle-Wrap ="true" ItemStyle-Width ="5%" HeaderStyle-Font-Bold="true" HeaderStyle-Width="5%" HeaderStyle-Wrap="true" HeaderStyle-CssClass="grid_header" ItemStyle-CssClass="grid_header">  
  225. <ItemTemplate>  
  226. <asp:HyperLink ID="CustomerId" runat="server" text=""><img src="download.png" style="max-width:24px;max-height:24px;cursor:pointer;"/></asp:HyperLink>  
  227. </ItemTemplate>  
  228. </asp:TemplateField>  
  229. <asp:TemplateField HeaderText="LinkedIn" ItemStyle-Wrap ="true" ItemStyle-Width="140" >  
  230. <ItemTemplate>  
  231. <asp:LinkButton ID="Name" runat="server" Text="Suresh"></asp:LinkButton>  
  232. </ItemTemplate>  
  233. </asp:TemplateField>--%>  
  234. <%--<asp:BoundField DataField="Name" HeaderText="LinkedIn" ItemStyle-Width="140" />--%>  
  235. <%-- <asp:BoundField DataField="Country" HeaderText="Digital resume" ItemStyle-Width="150" />  
  236. <asp:BoundField DataField="SourceId" HeaderText="Source" ItemStyle-Width="70" />  
  237. <asp:BoundField DataField="Workauthorization" HeaderText="Work authorization" ItemStyle-Width="150" />  
  238. <asp:BoundField DataField="HRworked" HeaderText="HR worked" ItemStyle-Width="140" />  
  239. </Columns>  
  240. </asp:GridView>--%>  
  241. <!-- Modal -->  
  242. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">  
  243. <div class="modal-dialog" role="document">  
  244. <div class="modal-content">  
  245. <div class="modal-header">  
  246. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">X</span></button>  
  247. </div>  
  248. <div class="modal-body">  
  249. <table style="width: 550px; ">  
  250. <tr>  
  251. <td class="auto-style1">  
  252. <asp:Label ID="lblname" runat="server" Text="Name:" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  253. <asp:Label ID="lblcandidateName" runat="server" Text="Suresh" Width="90px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  254. </td>  
  255. <td class="auto-style2">  
  256. <asp:Label ID="lblsource" runat="server" Text="Source:" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  257. <asp:Label ID="lblcandidatesource" runat="server" Text="Dice" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  258. </td>  
  259. </tr>  
  260. <tr>  
  261. <td class="auto-style1">  
  262. <asp:Label ID="lblemail" runat="server" Text="Emial:" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  263. <asp:Label ID="lblcandidateemail" runat="server" Width="90px" Text="[email protected]" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  264. </td>  
  265. <td class="auto-style2">  
  266. <asp:Label ID="lblhrowrked" runat="server" Width="100px" Text="HR worked:" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  267. <asp:Label ID="lblcandidatehrworked" runat="server" Text="Jevitha" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  268. </td>  
  269. </tr>  
  270. <tr>  
  271. <td class="auto-style1">  
  272. <asp:Label ID="lblphone" runat="server" Text="Phone number:" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  273. <asp:Label ID="lblcandidatephone" runat="server" Text="0123456789" Width="90px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  274. </td>  
  275. <td class="auto-style2">  
  276. <asp:Label ID="lblworkauthorization" runat="server" Width="105px" Text="Work authorization:" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  277. <asp:Label ID="lblcandidateworkauthorization" runat="server" Width="100px" Text="US Citizen" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  278. </td>  
  279. </tr>  
  280. <tr>  
  281. <td class="auto-style1">  
  282. <asp:Label ID="lbllocation" runat="server" Text="Location:" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  283. <asp:Label ID="lblcandidatelocation" runat="server" Text="Seattle,WA" Width="90px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  284. </td>  
  285. <td class="auto-style2">  
  286. <asp:Label ID="lbldownloadresume" runat="server" Width="100px" Text="Download resume:" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  287. <img src="download.PNG" alt="Smiley face" height="25" width="25" />  
  288. </td>  
  289. </tr>  
  290. <tr>  
  291. <td class="auto-style1">  
  292. <asp:Label ID="lbllinkedin" runat="server" Text="Linkedin:" Width="100px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  293. <asp:HyperLink runat="server" Text="Suresh" NavigateUrl="https://www.linkedin.com/" Width="90px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:HyperLink>  
  294. </td>  
  295. <td class="auto-style2">  
  296. <asp:Label ID="lbldigitalresume" runat="server" Width="100px" Text="Digital resume:" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:Label>  
  297. <asp:HyperLink runat="server" Text="digital_resume" NavigateUrl="https://www.linkedin.com/" Width="110px" Style="font-family: 'Segoe UI'; font-size: 12px;"></asp:HyperLink>  
  298. </td>  
  299. <td></td>  
  300. </tr>  
  301. </table>  
  302. </div>  
  303. </div>  
  304. </div>  
  305. </div>  
  306. <%-- <div style="float:right; ">  
  307. <asp:Button ID="btnaddtopipeline" runat="server" ToolTip="Add to pipeline" Text="Add to pipeline" CssClass="addtopipeline" style="font-family:'Segoe UI'; font-size: 10px; text-align:center; " />  
  308. <asp:Button ID="btnconducttechscreen" runat="server" ToolTip="Conduct tech screen" Text="Conduct tech screen" CssClass="conducttechscreen" style="font-family:'Segoe UI'; font-size: 10px; text-align:center; " />  
  309. <asp:Button ID="btncreatevideoresume" runat="server" ToolTip="Video resume" Text="video resume" CssClass="createvideoresume" style="font-family:'Segoe UI'; font-size: 10px; text-align:center; " />  
  310. </div>--%>  
  311. </div>  
  312. <div id="tabs-2" >  
  313. </div>  
  314. <%-- <div id="tabs-3">  
  315. </div>--%>  
  316. </div>  
  317. </div>  
  318. </form>  
  319. </body>  
  320. </html>  
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!!

Answers (1)