Access master page controls from content page?
by
Thamilselvanj
on
Jan 25, 2012
Category:
ASP.NET
|
Views:
36
|
Points:
25
|
Silver ★
|
|
|
sometimes we need to access the master page controls in content pages, see the below sample code how to access master page control from content page.
Label lblName = (Label)Master.FindControl("lblUsername"); lblName.Text = "Test Name";
|
Like this code? Bookmark and Share:
|
|
|
|
No Response found!
|
|
|
|
|