开发者

How to bind with a static property

I want to bind with a static property in my application, is that possible?

I've tried this:

<as开发者_JAVA百科p:ListItem Enabled="<%$ MyNamespace:myClassName, MyBooleanPropertyName  %>">

And the following message is appeared:

Parser Error Message: The expression prefix 'MyNamespace' was not recognized. Please correct the prefix or register the prefix in the section of configuration.

Thanks in advance


Use the following format to bind to a static property:

Property="<%# MyNamespace.myClassName.MyBooleanPropertyName  %>"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜