asp.net - Accessing user control properties defined in code behind in markup -
i have public property defined in code behind of user control. want toggle visibility of controls in markup based on property's value. however, using following syntax:
<td style="display:<%#(container.pagecontrolmode == pagecontrolmode. pagemode.wizard) ? "none" : "inline" %;">
i have following property in code behind:
public pagemode pagecontrolmode { get; set; }
does not work , generate errors. way around it?
<td style="display:<%#(container.pagecontrolmode == pagecontrolmode. pagemode.wizard) ? "none" : "inline";%>">
try that
Comments
Post a Comment