CodeVerge.Net Beta


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

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/5/2003 5:45:18 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 11 Views: 24 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
12 Items, 1 Pages 1 |< << Go >> >|
HumanCompiler
Asp.Net User
MasterPage question11/5/2003 5:45:18 AM

0/0

So MasterPages rock...true! Now I want to add in things like say a Title Property that for instance might print out at the top of every page. This is something that I would set on each individual page, but I would assume it would be a property of the Masterpage, right? If so, how do I do that? Just declare a Public Property? And if that's the case, how do I access it from each page? I don't see anything apparent, but then again, I'm usually pretty blind! ;)
Erik Porter
Channel 9
Microsoft 10
preishuber
Asp.Net User
Re: MasterPage question11/6/2003 10:33:19 AM

0/0

i think this part is not ready yet

2 possibiltys
1. put a literal control in title of masterpage, go to loadpage in contentpage and use findcontrol to find the literal, cast to type literal, set text proberty
2. put in masterpage class a public proberty, use <%=myprop%> in title go to laodpage in content page an set the property

i dont like both ways because i guess that a web designer should be able to set the title in the aspx part
-Hannes

http://www.preishuber.net http://weblogs.asp.net/hpreishuber
HumanCompiler
Asp.Net User
Re: MasterPage question11/6/2003 3:33:05 PM

0/0

Yah, I don't like those either! ;) I've written my own templates and what not in previous versions of ASP.NET and even though they lacked design time support (master pages rock!!!1), I could at least create a Property like Title and set it on the new page that inherited from the base page. I'd really like some way to do this in the future. Any plans ASP.NET Team? ;)

Also, I actually noticed that in the Quick Watch window when looking at Me (the Page) it has a "Master" Property. Must be Private though. I can't actually access it :(
Erik Porter
Channel 9
Microsoft 10
PaulWilson
Asp.Net User
Re: MasterPage question11/6/2003 6:31:45 PM

0/0

You can expose either a content region for the title, or define a property
in the Master that updates the title which you can get to using Master.
I'm not sure why you're having problems with Master -- it works for me.
There is also an HtmlHead control that will probably solve this in beta-time,
but currently it only supports stylesheets and meta-tags, instead of title.

Thanks, Paul Wilson, ASPInsider, MC**

For the best .NET code, examples, and tools, visit:
WilsonDotNet.com, WilsonWebPortal.com, ORMapper.net
HumanCompiler
Asp.Net User
Re: MasterPage question11/6/2003 6:38:26 PM

0/0

So I really should be able to get at it through Me.Master? I tried and it didn't work (I'll try again tonight). Although code behind was getting all messed up too, so it may have been related.
Erik Porter
Channel 9
Microsoft 10
smcculloch
Asp.Net User
Re: MasterPage question11/6/2003 9:34:59 PM

0/0

Paul,

Not having the whidbey release until my MSDN order comes through, I want to know how different is the MasterPages in Whidbey compared to the MasterPages in your ASPAlliance article?

Obviously there a tool differences but are the concepts of content regions the same?

Thanks again,

-Scott
Modules, Skins & Skin Objects @ www.smcculloch.net
PaulWilson
Asp.Net User
Re: MasterPage question11/7/2003 1:24:55 AM

0/0

You see examples of all the syntax in my article,
which has a code download for both v2.0 and v1.*.
You use a page directive instead of a server control,
and the syntax of the regions are slightly different,
but they should be simply changes -- nothing major.
My version has a default region that Whidbey does not,
but that's a big help now without the Whidbey designer,
and it will be relatively easy to convert when ready too.
In the current alpha, dynamic masters are more difficult,
but doable (see my article), but this should change in beta.
Thanks, Paul Wilson, ASPInsider, MC**

For the best .NET code, examples, and tools, visit:
WilsonDotNet.com, WilsonWebPortal.com, ORMapper.net
smcculloch
Asp.Net User
Re: MasterPage question11/8/2003 3:19:42 AM

0/0

Great, thanks again for your help Paul.
Modules, Skins & Skin Objects @ www.smcculloch.net
simoncal
Asp.Net User
Re: MasterPage question11/12/2003 8:29:58 PM

0/0

Responding to the initial questions in this thread, we are looking to fix this up in the beta, exposing a property on page/page directive for example.
Simon
This posting is provided "AS IS" with no warranties, and confers no rights.
HumanCompiler
Asp.Net User
Re: MasterPage question11/13/2003 2:19:22 AM

0/0

Excellent, thanks! :)
Erik Porter
Channel 9
Microsoft 10
bhupi
Asp.Net User
Re: MasterPage question4/27/2007 7:21:51 PM

0/0

though this will be simple question for you but not for me ,,, cause i'm very new in this field

 

How i can make a master page and how i can use this with other page.

actuly the problem with me when i created master page then it shows only the "content- content place holder1"

 and when i use this master page with any aspx page then when i enable from the smarttag "default to master content" then it begins to look like master page which i selected .. but after that i m unable to add any extra thing , e.g. after that i can't put no more tool to the my web page .. so can u tel me where is the problem ? i think any master page contains 3 thing in it but my master page shows only one thing i.e. "content place holder"

what should i do ? for using master page(.master)
 


Bhupendra Singh
bhupi
Asp.Net User
Re: MasterPage question4/27/2007 7:24:45 PM

0/0

sorry i forgot to mention that i'm using "visual studio 2005" and i'm new to this field

please tell me the solution of the above post 


Bhupendra Singh
12 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Publisher 2007 for Dummies Authors: Jim McCarter, Jacqui Salerno Mabin, Pages: 366, Published: 2007
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Mueller, Pages: 822, Published: 2005
Mastering InDesign CS3 for Print Design and Production: for print design and production Authors: Pariah S. Burke, Pages: 512, Published: 2007
Beginning SharePoint 2007 Administration: Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 Authors: Göran Husman, Pages: 578, Published: 2007
MCTS: Microsoft Office SharePoint Server 2007 Configuration Study Guide: Microsoft Office Sharepoint Server 2007 configuration : study guide (70-630) Authors: James Pyles, Pages: 672, Published: 2008
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
C# for Programmers/ Harvey M. Deitel, Paul J. Deitel Authors: Paul J. Deitel, Pages: 1317, Published: 2005

Web:
master page question - Adobe Indesign Windows Re: master page question. Posted: 06-01-2004, 10:00 PM. I tried that but I have not had any luck. These are pages that I already have ...
Sharepoint general Re: Master Page Question Master Page Question - Don. 09-Jan-08 09:53:56. Does any know where I can find a place to obtain pre-made master pages. I have been looking around and I can ...
Layout/Master page question : Adobe InDesign Aug 6, 2006 ... Layout/Master page question - Join the discussion of Adobe InDesign in Creative Cow's forum for users of this powerful page layout system.
Indesign - Master page question? - Mac Forums Indesign - Master page question? Design and Graphics.
Master page question for Jim or somebody Mar 11, 2008 ... Master page question for Jim or somebody. Hi I have the exact same code as you have written. I am using javascript to post the form to ...
MasterPage Question | Tech Off | Channel 9 public partial class mp_main : System.Web.UI. MasterPage { protected void Page_Load( object sender, EventArgs e){ if …
ASP.NET LoginView+MasterPage question - GameDev.Net Discussion Forums Gamedev.net is the leading resource for game developers, featuring daily news updates, over 1500 featured articles and tutorials, ...
Masterpage question. Masterpage question. Victor, Just to add to Daniel, the feature you are referring to is important to many of the features in SharePoint. ...
CSS link on masterpage question - ASP.NET Forums I'm reading about managing relative CSS links in masterpages and don't understand what the author is saying. I will quote the line "When ...
ASP.NET MasterPage Questions : The Official Microsoft Silverlight Site Question #4 : Let's assume that I'd like the MasterPage to have Silverlight content as well. For this we would have to add another ...




Search This Site:










two level tab menu

new design for css friendly login control

problem with skin files

css adapter - adapterenabled property doesn't work completely

tweaking the html layouts

how can i load this in vs 2005?

gridview caption

browser definition files - what am i doing wrong?

problems with horizontal orientation

gridview <emptydatatemplate>

treeview with three state chechbox

turn of css adapter for selected controls

changing style of gridview row in code-behind on a css-friendly gridview

installation error

custom rendering of wizard control

cleint-side support

<tr> mouseover in gridview

problem centering menu control using adpaters

install - update - css control adapters

problem with css adapters and iis

when menuitem.navigateurl is not set the menuitemclick event isn't fired!

how to create sub menu related to main menu with asp:menu

stylesheet question

gridview adapter with pagertemplate broken

css friendly adapters (beta3) can't find css file

[beta3] treeview bug with enhanced theme ?

css adapters ok on sharepoint desinger?

beta 3 error message on detailsviewadapter

gridviewadapter beta 3.0 with added support for cssclass, clientid, headerstyle-cssclass, row.cssclass, row.attributes

css adapter & tables with content query web part?

  Privacy | Contact Us
All Times Are GMT