R
Ryan Liu
Hi,
I'd like to set server control property, like SortExpression to a var like
public const string NAME = "name";
and this const can be used cross applicatoin to avoid typing error, is that
possible?
I know <asp:BoundField DataField="Name" SortExpression
="<%=Constant.NAME%>"> or
<SortExpression ="<%#Constant.NAME%>">
won't work.
Thanks,
Ryan
I'd like to set server control property, like SortExpression to a var like
public const string NAME = "name";
and this const can be used cross applicatoin to avoid typing error, is that
possible?
I know <asp:BoundField DataField="Name" SortExpression
="<%=Constant.NAME%>"> or
<SortExpression ="<%#Constant.NAME%>">
won't work.
Thanks,
Ryan