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!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/26/2007 4:01:29 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 37 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
brgdotnet
Asp.Net User
Custom content for page derived from Master.11/26/2007 4:01:29 AM

0/0

I have created a master page that has a default content place holder with content in it. When I create new .aspx pages, they will use the master page(MasterPage.Master) but I want each new .aspx page to have it's own content. Not the defautl content of the master page.

Also the content for each page will come from a particular row in a sql server database table. What I want to do is to use the flyout menu in the upper right hand corner of the content place holder control to point to my sql server data source and the table and row that the data will come from.

I can't get this to work? Basically the flyout menu will either let me chose any of the two different menu options, but never will it let me choose my data source.

1. Content tasks
2. Default to Masters Content

1. Content tasks
2. Create Custom content

 I did this correctly before but can't remember how I did it.

I also tried dragging and dropping a SqlDataSource object into my content place holder control. This did not work either.

Can someone help me out here?

Will

 

 

Amanda Wang - M
Asp.Net User
Re: Custom content for page derived from Master.11/27/2007 9:20:55 AM

0/0

Hi,

Base on you post, you put a SqldataSource object in the contenteplaceholder of the the master page, right?

But the  contentPlaceHolder defines a region of the master page rendering that can be substituted with content from a page associated to the master. viz. the controls of the Content Page can override content placeholder sections in the Master Page.

So you will find the it cannot work at runtime.

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005
Visual C# 2005: How to Program Authors: Harvey M. Deitel, Paul J. Deitel, Pages: 1591, Published: 2006
Visual Basic 2005: How to Program Authors: Harvey M. Deitel, Pages: 1513, Published: 2006
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
Programming Microsoft ASP.NET Authors: Dino Esposito, Pages: 1165, Published: 2003

Web:
Visual Studio Magazine Online | Practical ASP.NET: Build Web Sites ... It acts as a container placed in a master page, marking places in the master where related pages can insert custom content. A content placeholder is ...
VSJ | .NET Zone | Master pages and visual inheritance in ASP.NET A derived (or content) page is simply a collection of blocks the runtime ... It marks places in the master where related pages can insert custom content. ...
Master Pages: Master Your Site Design with Visual Inheritance and ... For example, one technique is to create a common Page-derived base class which ... The following Content Page provides content for the sitetemplate.master ...
Inside Microsoft: Structuring an ASP.NET 2.0 Site using Master ... This control is a container control that can be overridden in a content page visually derived from this master. This means that a content page can add ...
Specifying the Master Page Programmatically : The Official ... Because a content page's master page can be set programmatically at runtime it's .... and provide a means by the derived classes to raise the event. ...
CodeProject: An Extensible Master-Page Framework for ASP.NET 1.1 ... Now, our master page would be composed of some master custom control, .... since the ascx is derived from UserControl and the aspx is derived from Page. ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... Consider our earlier approach of using a custom event when when something interesting happens in the master page, and let the content page ...
Asp.Net 2.0 Page Directives includes @Page directive, @Control ... To access members of a specific master page from a content page, ... TypeName: Sets the name of the derived class from which to get strongly typed ...
Safari Books Online - 0131472275 - Core C# and .NET Figure 16-15. Web page derived from a master page ... Extending a Master Page's Content to Include Content for Other Application Pages. From ASP. ...
Brian Goldfarb's Blog : What would you want out of Master Page ... I've been trying to figure out what a set of master page templates / themes would ... Choose a table Layout -and where the custom content placeholder goes. ...

Videos:
www.moldytoaster.com rm). [2] Honor the etext refund and replacement provisions of this "Small Print!" statement. [3] Pay a trademark license fee to the Project ...
www.moldytoaster.com isces omnes, qui stagna, lacusque frequentant, Semper plus succi deterioris habent." "All fish, that standing pools, and lakes freque...
www.moldytoaster.com st'ning senates speaking;-- But as his fingers touch'd the purse's strings, The chinking metal made a magic sound, While hungry placemen g...
www.moldytoaster.com rasting so strongly with those of his neighbours to the east and west: of whom the Ghorkas are brave and warlike to a proverb, and the Bhotanese quar...




Search This Site:










add textbox in user registration

dnn objectqualifer in db

dotnetnuke panes

switching skins on a user basis?

module settings unwanted collapsing

including avcalendar in dnn

dnn 2.0.3 - css question

dnn site reorganization

strange problem: fix for "a potentially dangerous request.form" causes "runtime error"

errors in re-compile (need to because of mapquest...)

all rigths reserved - footer

dnn problem --pls help :(

nested actions in modules

how do you pass userid to child control?

change links skinobject

dnn 3.0.10 serializing custom objects in profile

3.05 issue - smtp test result feedback missing

clear cache question 3.0.13

forum/blog

dotnetnuke only on localhost, how can i connect from another pc

solpart menu / root item width

live chat module for dnn?

how can i install the survey?

how rewrite works?

config error on webhost4life install

whitespace probelms with [logo] and image module

dotnetnuke 3.2

ideas: improvements on the directory listing

can't add users with a scheduler task

odd error - can't view any .ascx files in vs 2003

  Privacy | Contact Us
All Times Are GMT