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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -