am having a viewstate which pertains value like:
string temp;
ViewState[\"temp\"] = dc.ColumnName.ToString();
This returns weekdays like:
You can not declare objects at runtime they way you art trying. You can store the week days in array / List0
and Sunday at index 6
, You can give id of element with the string name you want.
List weekList = new List();
weekList.Add(new TextBox());
weekList[0].ID = "txt" + ViewState["temp"].ToString();