Platinum Partner

Access Server Side Variable In Javascript

Add following javascript function to aspx page


function check() {
 alert("this is check value " + '<%= checkvalue %>');
}


Add following variable declaration on server side i.e aspx.cs

 public string checkvalue ="indrnilhafa";

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}