@using System.Data @model DataTable <input type="text" name="Datecall" id="Datecall" placeholder="Date" required="" /> <input type="button" id="btnsearch" name="btnsearch" class="form-control" value="Chart" style="color:green" /> <table cellpadding="5" id="employeeTable" cellspacing="5" border="1"> <tr style="background-color:aliceblue"> <th>EmployeeName</th> <th>Duplecated</th> </tr> @foreach (DataRow dr in Model.Rows) { <tr> <td>@dr["EmployeeName"]</td> <td>@dr["Duplecated"]</td> </tr> } </table>
Uncaught ReferenceError: ko is not defined
public ActionResult xternal(string Datecall) { DataTable dt = new DataTable(); string str = "Data Source=MAHGOUBND4;Initial Catalog=CTC_Mahgoub;Persist Security Info=True;User ID=sa;Password=ah987987987;"; using (SqlConnection cn = new SqlConnection(str)) { using (SqlCommand cmd = new SqlCommand(" SELECT EmployeeName, COUNT(EmployeeName) as 'Duplecated' FROM [dbo].[cs] WHERE Datecall LIKE 'Datecall' GROUP BY EmployeeName HAVING COUNT(EmployeeName) > 1; ")) { cmd.Connection = cn; using (SqlDataAdapter da = new SqlDataAdapter(cmd)) { da.Fill(dt); } } } return View(dt); }
Quote:Uncaught ReferenceError: ko is not defined
<script src="http://knockoutjs.com/downloads/knockout-3.0.0.debug.js" type="text/javascript"></script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)