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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -