嫩草视频 两个人的免费视频完整版 午夜视频 好大哥dgdg 骚虎视频 嫩草视频 嫩草视频 骚虎视频 影视大全免费追剧 两个人的免费视频完整版 影视大全 嫩草官网 啦啦啦免费观看视频6 影视大全高清版 野花在线观看免费视频 嫩草视频 骚虎视频入口 免费无限资源 好大哥dgdg 啦啦啦免费观看视频6 啦啦啦免费观看视频6 两个人的免费视频完整版 啦啦啦免费观看视频6 骚虎视频入口 影视大全 啦啦啦免费观看视频6 嫩草视频 野花在线观看免费视频 啦啦啦免费观看视频6 影视大全 影视大全 骚虎视频入口 影视大全免费追剧 24小时日本在线视频 嫩草官网 影视大全免费追剧
You must Sign In to post a response.
  • Category: ASP.NET

    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..
  • #769191
    What are you getting in return, whole text mean Complete Connection String starting with Data Source.... or anything else.
    -------------
    Glad to be,
    John Bhatt
    Editor - DNS Forums
    https://www.pyarb.com

  • #769192
    In alert ,I'm getting whole text whatever is there in single quote declared for var conn, but I need the value of myconnstring which is set in web.config (the value can be data source;dbname whatever).

  • #769210
    Add your code below <form id="form1" runat="server"> it will work


  • Sign In to post your comments
    好大哥影视-好大哥视频-好大哥官网-好大哥电影 骚虎视频官方-房事视频免费看 四虎视频官方-女人本色高清视频 午夜视频官方-24小时日本在线视频 好大哥视频-好大哥dgdg 野花在线官方-影视大全 久草视频入口-嫩草视频官网 小草视频入口-两个人观看野花免费视频 嫩草视频入口-大片免费视频