I need to fill a variable with a value from the app.config. Is there a way to do this in Javascript? This is what I have right now, however I don’t believe it’s in any way correct..
var notConfident = ConfigurationManager.AppSettings["GoogleValue"];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, javascript runs in the client side browser, the app config is a file in the server.
You can get the value by sending it to the client side, something like:
.aspx file:
.cs file, page load method:
.js file, onload method: