asp.net mvc 4 - how get json result in view without using Ajax -
i want jsonresult of action in view without using ajax
action is
public jsonresult courcedetails() { var result= ("_c"); return json(result, jsonrequestbehavior.allowget); }
view is
@{ viewbag.title = "courcedetails"; } <h2>courcedetails</h2> <div> </div>
Comments
Post a Comment