【发布时间】:2013-02-27 01:37:52
【问题描述】:
我想根据我传递的特定属性和他的值来生成。这就是我想使用帮助器的方式:
<sometag @PossibleHelper(parameter)/>
PossibleHelper 做完他的事情后,结果可能是这样的:
<sometag attributeName="attributeValue"/>
如何在帮助器中表达这一点?
@helper PossibleHelper(someType){
if(condition){
attributeName="attributeValue" //this is wrong
}
}
【问题讨论】:
标签: c# asp.net-mvc html-helper asp.net-webpages razor-2