Call JSON file http request inside Razor code and show the response in Umbraco -


i new umbraco , wants call json file http request inside razor code , needs show response in same razor code file once response.

@inherits umbraco.web.mvc.umbracoviewpage<dynamic> @using newtonsoft.json.linq @{            var jobject = model.value;           }   }   @{     if(@jobject != null){     <div class="banner-container" >                 <div class="banner-box">                             <div class="banner-div">                                 <h1>@jobject.title</h1>                           @{                               if(@jobject.btnlink == null){                                                     <div style="text-align: @btnposition">                                   <a href="#" class="btn @jobject.btnclass.value">@jobject.btntext</a>                               </div>                               }                                                  }                          </div>                   <div class="banner-img" style="background-image:url('@jobject.img');">                   </div>             </div>      </div>       }      }          

have 1 done before 1 have idea , have try find razor inside calling http request cant able find , can 1 me on please :)


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -