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 %>"
精彩评论