Posts

Showing posts with the label JSON

add condition in jquery.tmpl.js

Solved: Add condition in tmpl jquery and remember its have closing tag {{if colName==''}}       <a class="hidden" href="${colName}">View</a> {{else}}       <a class="visible" href="${colName}">View</a> {{/if}}

Get Web API to return plain or simple text

Often we get as a collection or object when we test API and get return to a string like a plain text or auto generated ID. It is simple to view that code  response.Content.ReadAsStringAsync().Result