Thursday, 22 August 2013

Embedding display expression inside asp.net tag

Embedding display expression inside asp.net tag

I have a class that just have defined url constants, let's say it is
called Urls. I am trying to access a constant in that class inside of a a
LoginStatus tag as follows:
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutAction="Redirect"
LogoutPageUrl= <%= Urls.logout %> CssClass="myButton" />
and obviously it isn't working. I know I can hardcode the string inside of
the field, but I am trying to avoid that if possible. Thanks for the
insight!

No comments:

Post a Comment