View Single Post
  #7 (permalink)  
Old April 12th, 2007, 07:36 AM
WaleedSeada WaleedSeada is offline
Registered User
 
Join Date: Apr 2007
Location: Cairo, , Egypt.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by spencery


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;
Is this correct for a usercontrol setting on the master page itself?

I mean I have master page and usercontrol (navigation tree) setting on the left side, this control need to access the content place holder on that master page, how can I do that ..

Thanks and best regards

Waleed Seada
Reply With Quote