ASP.NET (35) SQL (25) JAVASCRIPT (24) HTML (14) STYLE SHEET (6) ASP (4) SCRIPT (1)

Search me out HERE!!

To get Master Page object in your page.

Use below code in your page to get Master Page object which can be used to access master page property

Put this code on top of your page:
<%@ MasterType VirtualPath="//Master Page Path" %>

No you can use master page object as
Master.Username = "test"
//Here Username is property of Master Page. Similarly you can access methods also.

No comments:

Post a Comment