Problem with usercontrol....
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
dear friends in my application m having a label control on the parent page and not i want to access this from the usercontrol. i want to change the text property of the label. I have used this code but it is returning null.
Label lbl = (Label)this.Parent.Page.FindControl("lblErr");
if (lbl != null)
{
lbl.Text = "This shortname is already in use, please use a different shortname.";
lbl.Visible = true;}
help me please..........
Deepak Nigam deepak@swiftcybernetics.com Swift Cybernetics