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

Popular posts from this blog

forms - Secure PHP File Upload Script -

silverlight - SL4 - TextTrimming in DataGridRowGroupHeader -

java - How do I override the spring framework version in Spring Batch? -