You can just load the Partial view using this code: Load the Partial view to the DIV $( "#divdetail" ).load( ' @ Url.Action( "_Detail" , "GEMS_BCRpt" ) ' + "?ID=" + ID ); <script> $(function() { $("#btn").click(function() { var id = 10; var valoare = 'test'; var url = '/TestingImages/Index2?Id=' + id + '&valoareselectata=' + valoare; window.location.href = url; }); }) </script> <input id="btn" type="button" value=“submit"/> function changedet(ID) { $( "#divdetail" ).load( ' @ Url.Action( "_Detail" , "GEMS_BCRpt" ) ' + "?ID=" + ID ); }
How to call Stored Procedure using Entity Framework? First you have to Add the SP to Entity Framework Model. But you cannot see the SP name under Complex Types or Function Model under Model Browser. It lies with your SP that using Temp table. If you are using Temp Table in your SP, you must add SET FMTONLY OFF; On top of the SP, and re-add the SP, the SP will be usable in Entity Framework.
Comments
Post a Comment