View Single Post
  #6 (permalink)  
Old June 15th, 2006, 05:47 PM
spencery spencery is offline
Registered User
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

On a related note:

If you ever have a need to access properties of a master page from a user control in ASP.NET 2.0, here’s how you do it:

Add to .ASCX file:

<%@ Reference VirtualPath="~/Templates/ListDetailTemplate.master" %>

Cast the reference as follows:
            ((ASP.templates_listdetailtemplate_master)Page.Mas ter).PageHeightOffset = 250;

Reply With Quote