CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 5/11/2006 2:23:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 110 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
RDF
Asp.Net User
Access MasterPage from another PROJECT5/11/2006 2:23:14 PM

0/0

Similar to my last post, I have a website that houses many other projects, mainly layers (data access, configuration, etc.).  I have a Base Class project that all my web pages inherit from (ASIBasePage) and I'd like to access controls on the Master Page and change them from this BasePage class.  I can do this from the inherited page (index.aspx) like so:

((

scMaster)this.Master).TitleName = " Welcome " + SiteData.UserInformation.Instance.Title + " " + SiteData.UserInformation.Instance.FirstName + " " +
SiteData.UserInformation.Instance.LastName;

((

scMaster)this.Master).LogoURL = "~/images/logos/" + SiteData.Customer.Instance.CustomerCode + "_logo.jpg";

But I have since moved this code to my ASIBasePage project in the overrideable method OnLoad.  Now I know it's not going to work because it can't locate the scMaster page, but does anyone know how I can accomplish this?

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Mueller, Pages: 822, Published: 2005
Visual Studio .NET Tips and Tricks: Convers Versios 2002, 2003, and 2005 Authors: Minh Nguyen, Pages: 124, Published: 2004
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Beginning ASP.NET 2.0 E-commerce in C# 2005: From Novice to Professional Authors: Cristian Darie, Karli Watson, Pages: 681, Published: 2005
Pro ASP.NET 2.0 E-commerce in C# 2005 Authors: Paul Sarknas, Pages: 617, Published: 2006
Beowulf Cluster Computing with Linux Authors: Thomas Lawrence Sterling, Pages: 496, Published: 2001
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006

Web:
Access MasterPage from another PROJECT - ng.asp-net-forum ... Access MasterPage from another PROJECT, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls, Date: 5/11/2006 ...
Access MasterPage from another PROJECT - ASP.NET Forums I have a Base Class project that all my web pages inherit from (ASIBasePage) and I'd like to access controls on the Master Page and change ...
Installing in a subdirectory/using another project's master page ... NET master page from another project, namely my root application project. ... then it cannot access another application's master file. ...
sharing masterpage across two projects - bytes I have a project that holds a master page. I want to use the same masterpage in another web project. It seems like this is not possible. ...
CodeProject: Passing Parameters to Master Page's User Control ... Nov 6, 2008 ... Page.Master).GetValueName();. lblNumber.Text = i.ToString();. } } Again I use the Interface to access to the property set in the Master Page ...
Feedback: The Master Page file ... cannot be loaded Need 2005 for now since another app can't be converted yet. ... I load the Master Page from a content page within the Master page's project. ...
Use Master page from other projects within the same solution Hard Drives; Misc; Remote Access. Removable Backup Media; Servers; Storage Technology ... You can't use a master page that belongs to another project. ...
ASP.NET Resources - How to Link Stylesheets from a Master Page In 2.0 you may access the element of a page server-side (provided you ... I actually started working on another master page article this weekend that ...
Gerard Leblanc on Silverlight 2 | Master page We start from the previous project, with Page as master page and Page1 and .... then create another StreamResourceInfo object ( sri4dll ) to get access to ...
ASP.NET - Master Page Drawbacks Having a master page will result in another assembly in your project in many ... not a child of the master page. It cannot access the control directly. ...




Search This Site:










restoring dnn in another server

file upload for developers

vendors, newbie question

3.12 upgrade error

"preview" mode affects all administrators

iframe - valid url?

error : http://localhost/dotnetnuke/default.aspx?tabid=1&error=specified+argument+was+out+of+the+range+of+valid+values.%0d%0aparameter+name%3a+index&content=0

forum module not sending out any emails

dnn 3.07:dose search module work?

project dll in project bin folder is not updated automatically in the dotnet bin folder

how to rollback the database to the version 3.0.12 ?

where is admindb in dnn 3.0

style in rich text editor tables

url modification

is there support for non-admins creating pages?

dnn xxl 1.0.10 - prefered language acted upon

help with isearchable

does anyone have a ping/tracert module?

skinning with dnn 2.0 alpha

strange dnn adduser error

link directory

string thing happening in solpartmenu

dumb question of the day

possible to replace contentpane from links?

attn: dnn gurus, core team, etc...

news module

dnn 2.0.3 exception error - permissions?

log viewer error : dnn 3.1.0

installing codesmith templates

strange performance problem - help please !

  Privacy | Contact Us
All Times Are GMT