Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 15th, 2005, 01:19 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating a Master Page and Importing a CSS

Chapter 2, 'Try it out', page 36:
Step 5 says: "Switch back to Design View to set the style sheet. At the top of the Properties box, drop down the list of controls and select Document. At the bottom of the properties list, find Style Sheet (see Figure 2-5), click its ellipses, and browse to site.css. Click OK."

Problem: I don't get a 'Stylesheet' property option!? Only 'Title'. What could I be doing wrong?

  #2 (permalink)  
Old December 21st, 2005, 05:03 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It didn't work for me either. I looked up help within VWD and it said to "drag" the .css file ontop of the form in design view. This worked for me and created a link in source view.

  #3 (permalink)  
Old December 21st, 2005, 06:42 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I don't have the book, so I can only guess where you're instructed to add the style sheet.

However, for a Master Page the Document does have a Style Sheet property which is available in both Design View and Code View when you're editing a Master Page. Are you sure you selected Document from the Properties drop-down and not say, the <div> tag?

I could be completely mistaken as to where you're supposed to add the style tag, but for a Master Page you should be able to do it.

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: English Summer Rain by Placebo (Track 2 from the album: Sleeping with Ghosts) What's This?
  #4 (permalink)  
Old March 3rd, 2008, 06:46 PM
Registered User
 
Join Date: Feb 2008
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I also having problem on page 36 of book ASP 2.0 NET with C#.

I have drag style sheet onto design view, and still no "Document" property of StyleSheet to set, any other suggestions?

  #5 (permalink)  
Old March 3rd, 2008, 06:51 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Like I said, I don't have the book, so I am not exactly sure what you're supposed to do. Can you take a look at my previous reply and provide more information?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
  #6 (permalink)  
Old March 13th, 2008, 03:51 PM
Registered User
 
Join Date: Feb 2008
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After creating a Master Page site.master step 5 on page 36
states the following:

5. Switch back to Design View to set the style sheet. At the top of the Properties box, drop down the list of controls and select Document. Set the Debug property to True. At the bottom of the properties list, find StyleSheet (see Figure 2-5), click its ellipses, and browse to site.css. Click Ok.

The problems is under Document there is no property called StyleSheet. The book shows the property is part of Document properties under [-] Document.

  #7 (permalink)  
Old March 14th, 2008, 03:56 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

The goal of the exercise is to add a style sheet to the document right? If that's the case, you can simply work around it by dragging the CSS file from the Solution Explorer onto the page.

Can't offer any other advice as I don't know what the main purpose of the exercise is.

Hope this helps,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Page and Content Page with Java script Harjinder ASP.NET 2.0 Professional 1 February 1st, 2008 10:31 AM
how to add css to master pages? shaileshcdac Classic ASP Basics 0 April 5th, 2007 04:01 AM
Access Master page control from Content page. angshujit ASP.NET 2.0 Basics 3 January 11th, 2007 06:20 AM
Add dynamic css to master/content page proj-How? VictorVictor ASP.NET 2.0 Basics 6 June 9th, 2006 12:09 PM
Creating a Master Page and Importing a CSS rubends BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 April 19th, 2006 03:43 PM



All times are GMT -4. The time now is 04:00 AM.


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