Why isn’t this working?
<ajaxToolkit:TabPanel Enabled='<%# User.IsInRole("admin") %>'...
While this works:
<asp:TextBox Enabled='<%# User.IsInRole("admin") %>'...
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is the first example within a binding context (bound control)? Perhaps you want to use the output directive instead of the binding directive?
EDIT: My bad.
<%= %>translates into Response.Write, which is not what you want — too used to ASP.NET MVC, I guess. The best thing is to make itrunat="server", give it an ID and set the value in your code-behind.