I am trying to pass a URL from the web.config file to .ASPX file I have tried creating a add key property in the web.config file and used that key in the .aspx page, but it does not take the URL.
<add key="ManageToken" value="http://www.w3schools.com/html/"/>
<tr>
<td align="right"><a href="System.Configuration.ConfigurationManager.AppSettings("ManageToken").ToString"><font color="blue"> Manage Token</font></a>|
Any ideas.
Thanks!
您必须将表达式放入代码渲染块中 :
<a href="<%= System.Configuration.ConfigurationManager.AppSettings("ManageToken") %>">
I was able to find the issue. I had to use the System Configuration namespace to use the URL parameter.
Mark, Thanks for all the input.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.