Link to home
Start Free TrialLog in
Avatar of Bobby X
Bobby XFlag for United States of America

asked on

Expression Builder

Is there a way to display the value of MyClass.SomeMessage in the expression builder <%$  $> of the Label control below?

<asp:Label ID="lblMessage" runat="server" Text="<%$ Is there a way to display the value of MyClass.SomeMessage here %>" />

    // This class is defined in App_Code folder
    public static class MyClass
    {
        public static string SomeMessage
        {
            get
            {
                string message = "This is some test message";
                return message;
            }
        }
    }
ASKER CERTIFIED SOLUTION
Avatar of Partha Mandayam
Partha Mandayam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bobby X

ASKER

I will give it a try tomorrow when I return to work. Thanks.