Member Avatar

i write certain piece of code using mvc 4 and jquery and jtable ,but data is not visible in grid ,only blank grid is present , (No data available!) although i have updated all references of jquery in vs 2012 , action method is showing 3 records at quick watch but not showing in grid any help here is view action method [HttpPost] public JsonResult DeptList() { try { List<TBL_Department> persons = new List<TBL_Department> { new TBL_Department{DepartmentID=1,Department="Aaa",Abbreviation="a",prefix="AR",DeptInchargeID=2}, new TBL_Department{DepartmentID=2,Department="Bbb",Abbreviation="b",prefix="AR",DeptInchargeID=2}, new TBL_Department{DepartmentID=3,Department="Ccc",Abbreviation="c",prefix="AR",DeptInchargeID=2} }; return Json( persons, JsonRequestBehavior.AllowGet); } catch (Exception ex) { //return Json(new { Result = "ERROR", Message = ex.Message …

0
4
Member Avatar

can any one help me how to pass model object from view to controller using ajax .i have below code but not working.i am getting null in EmpAddType .even i selected any thing from drop downlist <script> function GetFilter() { var employeeAddress = { "EmpAddType": $("#drop1 option:selected").text() } alert($("#drop1 option:selected").text()); alert(employeeAddress.EmpAddType); $.ajax({ url: '@Url.Action("SaveAddress")', type: 'POST', cache: false, contentType: 'application/json', dataType: "json", data: JSON.stringify(employeeAddress), success: function (data) { alert("You Multiple Data Passed Successfully"); }, error: function () { alert("failed"); } }); } function showDiv() { $('#MailingContactDetails').show(1000) } function showDiv2() { $('#AccountDetail').show(1000) } </script>

0
11
Member Avatar

Microsoft ASP.NET MVC is arguably one of the most flexible frameworks for building modern web applications. One of the things that I've noticed over the last couple of years is that with many AJAX applications using Restful web service, many MVC controllers are now almost redundant. Using the default MVC HTTP handler means that regardless of whether you actually need server-side code for rendering each view, you must have a corresponding controller. In many cases, these controllers have a single action (e.g. Index) which simply returns the view. This seems inefficient and adds to the maintenance cost of the application. …

1
15
Member Avatar

O would like to understand how to manage my website with Multilingual option for exapmple if the user is cominf form the domain .fr or .it or co.uk ect... how can i do this??? Thanks a lot for your help

0
6

The End.