How to access web.config settings directly in .aspx page?

前端 未结 4 1819
时光取名叫无心
时光取名叫无心 2020-12-29 01:46

I\'ve created a web page and it contains some settings value in Web.Config for example images. So I want to give the path of images in Web.Config file and file name in that

4条回答
  •  臣服心动
    2020-12-29 02:26

    Waqas Iqbal's answer:

    <%$ AppSettings:ImagePath %> 
    

    from Binding ASP.Net Web.Config Settings To .ASPX File ? worked nicely!

提交回复
热议问题