Should be an easy question
I'm trying to set the CommandName attribute of a button using a const string from the code behind. I have done this before for IDs etc. So this is what I have
<asp:Button ID="test1" CssClass="Buttons" runat="server" Text="Test" OnClick="Test_Click" CommandName="<%=this.TestCommand%>" />
In my code behind I have
public const string TestCommand = "TestCommand";
In the button handler I get the CommandName = <%=this.TestCommand%>
How do I set the CommandName attribute to = the const string?
Thanks in advance!!