Its easy to find the control in apsx page but we need to write
extra code when we have a master page for the aspx page.
Below is the code which finds control in aspx page which has master page.
Dim content As ContentPlaceHolder
content = Page.Master.FindControl("ContentPlaceHolder1")
Dim labelcontrol As Label
labelcontrol = content.FindControl("LabelId")
labelcontrol .Visible = False
using above code we can find the control.
No comments:
Post a Comment