Read app config settings in Html page
Hi,I am trying to read config file and get those values in a HTML page (but not Asp.Net form).
inside a script tag...
var serverIP = '<%=ConfigurationManager.AppSettings["ServerIP"].ToString() %>'
alert(serverIP);
serverIP = 10.20.1.40 (set in app config)
So I want to get alert on Html page as "10.20.1.40" But I am getting whole text (whatever is inside quotes) instead of only the value of only serverIP from app.config.
Please let me know what is wrong in above code and please correct it.
Thanks..