Bobby X
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;
}
}
}
<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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ok
ASKER