how to access the text property of a label using attributes.add
actually i have written the following code
THIS code is written in .cs file where iam trying to get reference of the control from the .aspx page
HttpContext.Current.Session["selected"] = dt;
Page page = HttpContext.Current.Handler as Page;
WebControl testcontrol = (WebControl)page.FindControl("lblHierarchy");
testcontrol.Attributes.Add("Text","sometext");
the above code works fine but the text is shown as "" (blank)
any help would be appreciated
thanks