Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: Imar
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB May 31st, 2012, 07:08 AM
Replies: 9
Views: 12,989
Posted By Imar
Yes, that's exactly how it is, except that in...

Yes, that's exactly how it is, except that in Content pages the content goes in a Content control that targets a ContentPlaceHolder in the master page.

Imar
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB May 30th, 2012, 06:51 PM
Replies: 9
Views: 12,989
Posted By Imar
It depends. The first solution is preferred for...

It depends. The first solution is preferred for css and js files you need on all pages. The second option is used for files you only need on some pages, and are therefor added to the content page...
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB May 30th, 2012, 05:30 PM
Replies: 9
Views: 12,989
Posted By Imar
No, that would still whipe out the content by the...

No, that would still whipe out the content by the content pages (content in a CPH only serves as a default). I would do this:


<link href="../Styles/styles.css" rel="stylesheet" type="text/css"...
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB May 30th, 2012, 05:16 PM
Replies: 9
Views: 12,989
Posted By Imar
Hi there, That wouldn't work. With that...

Hi there,

That wouldn't work. With that code, the CSS in the head control gets overwritten with custom content from content pages that have a Content control for the head ContentPlaceholder.
...
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB May 28th, 2012, 03:17 AM
Replies: 9
Views: 12,989
Posted By Imar
Hi there, For stuff that you want repeated...

Hi there,

For stuff that you want repeated on all pages (such as global CSS fiels), the master page is a good location. For content that differs for each page, you can use the ContentPlaceHolder...
Showing results 1 to 5 of 5

 


All times are GMT -4. The time now is 03:16 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.