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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -