1
Reply

variable assigning in aspx page, to be used in the codebehind page

Lex

Lex

Oct 12 2010 12:20 PM
8.1k

I'm working on a project, problem is that I have to assign different test to a button depending on what it is used for, and have this code:
ButtonsText="OK,CANCEL,ABORT,RETRY,Yes continue and apply all selected settings,No cancel without saving selected settings,IGNORE"
The 'Yes continue and apply all selected settings' and the no version i would like to assign with different variables in the codebehind page, I know normally you would use a <%=variablename%>, but this isnt' working in this case.
Is there another way of fixing this, so i can assign it in the code behind page? Currently we have translation method in the whole project, except for these 2 values.

Answers (1)