views:

392

answers:

1

If you want easy access to the MasterPage properties etc in ASP.Net you can set the MasterPage TypeName in the head of the aspx page i.e. <%@ MasterType TypeName="_Master_Content" %>

But How do you do this via the code file?

A: 

TypeName is the Base class from which your Master page is going to derive so if you have defined your own BaseMaster Pag, in the code behind of the Master page inherit from your CustomMaster

instead of System.Web.UI.MasterPage inherit from CustomMaster

Rony