场景:
我在 appSettings 的 web.config 中有一个键:
<add key="stylet" value="http://localhost/style.css"/>
我有一个带有以下代码的 .cs 文件:
response.ContentType = "text/html";
response.Write("<html>");
response.Write("<head>");
response.Write(@"<title>See the page</title>");
response.Write(@"<link rel='stylesheet' type='text/css' />");
response.Write("</head>");
response.Write("<body>");
response.Write("<br /><table style='width: 500px'>");
response.Write("<tr><td class='ArticleIntro'>");
response.Write(propertyValue);
response.Write("</td></tr>");
response.Write("</table>");
response.Write("</body>");
response.Write("</html>");
问题:
我如何请求 .cs 文件中的密钥?