将键的值分配给web.config中的handler属性。 [英] Assign key's value to handler property in web.config.
本文介绍了将键的值分配给web.config中的handler属性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我们有什么方法可以在web.config中为handler的属性赋值key?
例如
Hi Guys,
Is there any way we can assign value of key to the property of handler in web.config ?
e.g
<add key="FileLocation" value="Log/test.html" />
<handlers>
<add name="XYZ" verb="POST,GET,HEAD" path="{FileLocation}" type="Test.App" />
</handlers>
先谢谢。
Thanks in Advance.
推荐答案
您无法在app.settings中的任何位置指定变量替换路径,并期望它能够正常工作。它没有内置支持。
You cannot specify a variable-replaced path like that anywhere in the app.settings and expect it to work. There is no in-built support for it.
这篇关于将键的值分配给web.config中的handler属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文