am having a viewstate which pertains value like:
string temp;
ViewState["temp"] = dc.ColumnName.ToString();
This returns weekdays like: Monday,tuesday,wednesday etc
Now am using this value here:
string a = "txt" + ViewState["temp"].ToString();
TextBox a = new TextBox();
But it gives me error
Cannot implicitly convert type 'System.Web.UI.WebControls.Textbox' to 'string'
I want textbox variable name like txtmonday,txttuesday dynamically.
Is there any way that I can assign variable name???