April 24, 2012

Read web.config value in JavaScript

We can directly read value of web.config in javascript.
Syntax will be something like as below:

var value = '<%=ConfigurationManager.AppSettings["DID"].ToString() %>'

That’s it.
Enjoy Learning.

No comments:

Post a Comment