开发者

How to bind with a static property

开发者 https://www.devze.com 2023-02-28 02:18 出处:网络
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%>\">

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

精彩评论

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