Here is my html and ajax
- "utf-8" />
- "button" id="btnUsers" value="GetUsersList"/>
- "button" id="btnClear" value="Clear Users"/>
- "Userlist"
My controller code is here
- public class EmployeesController : ApiController
- {
- [HttpGet]
- public IEnumerable
Get() - {
- using (LoginEntities ln = new LoginEntities())
- {
- return ln.Users.ToList();
- }
- }
- [HttpGet]
- public HttpResponseMessage Get(int id)
- {
- using (LoginEntities dd = new LoginEntities())
- {
- var entity = dd.Users.FirstOrDefault(e => e.UserId == id);
- if (entity != null)
- {
- return Request.CreateResponse(HttpStatusCode.OK, entity);
- }
- else
- {
- return Request.CreateErrorResponse(HttpStatusCode.NotFound, "Employee Id " + id.ToString() + "Not found");
- }
- }
- }
when i inspect the data is there but the UL is not binding and not showing the data on page there is no error on console Jquery is working fine i check it with alert.

Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 21, 2019, 8:35 PM EDT
Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 21, 2019, 9:08 AM EDT
Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 21, 2019, 9:10 AM EDT
is valid I think you will have to
Mark TaborRank #914 · 2.3K reputationPosted Mar 21, 2019, 10:17 AM EDT
Mark TaborRank #914 · 2.3K reputationPosted Mar 21, 2019, 9:42 PM EDT
Mark TaborRank #914 · 2.3K reputationPosted Mar 21, 2019, 9:47 PM EDT
Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 21, 2019, 9:57 PM EDT
Mark TaborRank #914 · 2.3K reputationPosted Mar 21, 2019, 10:07 PM EDT
Mark TaborRank #914 · 2.3K reputationPosted Mar 21, 2019, 10:13 PM EDT
Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 21, 2019, 10:27 PM EDT
Mark TaborRank #914 · 2.3K reputationPosted Mar 21, 2019, 10:28 PM EDT
Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 21, 2019, 10:52 PM EDT