Javascript And Web.config.
-
How can I get Application Settings Key Values of web.config through Java Script? Please any one help...
-
How can I get Application Settings Key Values of web.config through Java Script? Please any one help...
-
How can I get Application Settings Key Values of web.config through Java Script? Please any one help...
Use AJAX to call a server function for getting the values from web.config
Thomas
-
You can't. You have to get the value in the server code, and either create Javascript code that recreates the value, or put it in a hidden field where the Javascript can access it.
--- single minded; short sighted; long gone;
You need to read it in the codeBehind to a protected variable like protected string strAppTitle = ConfigurationSettings.AppSettings["AppTitle"]; Then in the JavaScript, you can use var strAppTitle = "<%=strAppTitle%>" ;