p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 16th, 2009, 04:18 PM
Authorized User
Points: 208, Level: 4
Points: 208, Level: 4 Points: 208, Level: 4 Points: 208, Level: 4
Activity: 44%
Activity: 44% Activity: 44% Activity: 44%
 
Join Date: Jun 2009
Posts: 48
Thanks: 14
Thanked 1 Time in 1 Post
Default Manage Styles tab empty in WDM Express 2008

I've got to page 86 - Attaching you New Style Sheet to Your Document.

The technique works but - except for a fraction of a second when the tab is opened - under CSS Styles, the Style 1 CSS listing disappears. And after attaching the sheet, the same is true for the full CSS listin - it's visible momentarily, and then disappears.

I am using Web Developer Manager 2008 Express.

How can I make the listing appear?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 16th, 2009, 05:53 PM
Imar's Avatar
Wrox Author
Points: 33,533, Level: 80
Points: 33,533, Level: 80 Points: 33,533, Level: 80 Points: 33,533, Level: 80
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,225
Thanks: 7
Thanked 202 Times in 200 Posts
Default

Hi there,

I am not exactly sure I understand what you're saying or what the problem is.
Quote:
The technique works but - except for a fraction of a second when the tab is opened
Does it work fine *except for a fraction* or *only for a fraction*?

And what do you mean with "the same is true for the full CSS listin"? What does disappears from what?

Quote:
I am using Web Developer Manager 2008 Express
Not nit-picking, but want to make sure we're talking about the same thing: do you mean Visual Web Developer Express Edition?

Finally, are you doing this in Design View or in Code View? And is the syntax of your CSS file alright? What happens when you create a new, simple CSS file like this:

Code:
 
body
{
  background-color: red;
}
and apply that to a brand new web page. Does that work?

Cheers,

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
While typing this post, I was listening to: Thunderclap for Bobby Pyn by Sonic Youth (From the album: The Eternal) What's This?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 16th, 2009, 06:56 PM
Authorized User
Points: 208, Level: 4
Points: 208, Level: 4 Points: 208, Level: 4 Points: 208, Level: 4
Activity: 44%
Activity: 44% Activity: 44% Activity: 44%
 
Join Date: Jun 2009
Posts: 48
Thanks: 14
Thanked 1 Time in 1 Post
Default

Imar, thanks for getting back to me.

I am using Visual Web Developer 2008 Express Edition.

If I remove the <link /> element removed from Default.aspx, and then go into Design View and do what the book suggests, and go View|Mange Styles, an extra tabbed page appears as Manage Styles, laid out as in Figure 3-9. For maybe a second, the Current Page, Style 1 listing appears - and then it vanishes. Clicking 'Apply Styles', and attaching results in no listing showing on in the Manage Styles screen - however, the styling is applied correctly - and the page will run with styling applied. Flicking from the .aspx file to the Manage Styles tab results in all the listing showing for a merest fraction of a second - and then disappearing.

However, if (again with <link /> element removed and Default.asp in Design View), and I go to View|Apply Styles - then a separate area of the screen opens up with a view very like Figure 3-9 - except that it is headed 'Apply Styles'. If I then add the style sheet, the styles listed in Figure 3-10 appear.

Undoing all that and reapplying styles via 'Management Styles' resulted in an error to do with the web.config file. Ouch. I have also had problems with doing what you ask - with strange errors showing. It's 22.55 here - I am going to have another go in the morning after some sleep!

I am beginning to wonder if I should just skip this it - I am used to handling style sheets manually (up until now I have used HTML/CSS/php) and think I may be getting bogged down on something I can manage without. But I will have another look tomorrow morning.

PS great book - I had been roaring along until I hit this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old June 17th, 2009, 08:43 AM
Authorized User
Points: 208, Level: 4
Points: 208, Level: 4 Points: 208, Level: 4 Points: 208, Level: 4
Activity: 44%
Activity: 44% Activity: 44% Activity: 44%
 
Join Date: Jun 2009
Posts: 48
Thanks: 14
Thanked 1 Time in 1 Post
Default

OK, I have rebuilt the site to where is should have been using the downloaded source code. The problem persisted, so I built a test site, and with a style sheet as specified above.

After applying the style sheet to the default page (in design view) no listing was shown. However, when I switched to the the default page, it was clear the styling had been applied. Switching back to Manage Styles, this listing showed for less than a second (I was quick on the print screen button!) - but then the listing disappeared.

A similar thing happens for View|CSS properties (Fig 3-16). Momentarily the properties are there - then they vanish.

Could be that VWD needs re-installation, I suppose - but unless something else crops up, I don't think I will do that. This is not the end of the world, I can manage CSS styles without the assistance of VWD - but I am puzzled as to why it is happening, and would appreciate your thoughts.

Last edited by kiwibrit : June 17th, 2009 at 01:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old June 17th, 2009, 07:01 PM
Imar's Avatar
Wrox Author
Points: 33,533, Level: 80
Points: 33,533, Level: 80 Points: 33,533, Level: 80 Points: 33,533, Level: 80
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,225
Thanks: 7
Thanked 202 Times in 200 Posts
Default

What was it they said about a picture being worth more than a 1000 words? ;-)

I can see what the problem is now. The Manage Styles window lists styles that it finds in the document that is *currently the active document in the Document Window*. However, you set up the Manage Styles panel as a document window document as well. So, as soon as you put focus on the Manage Styles window in the Document Window, your ASPX page looses focus and the Manage Styles has nothing to display anymore.

Simply undock the Manage Styles window to remove it from the Document Window, dock it with another tool panel like the Toolbox on the left or the Properties Window on the right and you should be OK. The Document Window showing your ASPX and the Manage Styles window can then live side by side and the latter will find styles associated with the page in the former.

Hope this helps.

Cheers,

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
While typing this post, I was listening to: Walkin Blue by Sonic Youth (From the album: The Eternal) What's This?

Last edited by Imar : June 17th, 2009 at 07:03 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
kiwibrit (June 17th, 2009)
  #6 (permalink)  
Old June 17th, 2009, 07:41 PM
Authorized User
Points: 208, Level: 4
Points: 208, Level: 4 Points: 208, Level: 4 Points: 208, Level: 4
Activity: 44%
Activity: 44% Activity: 44% Activity: 44%
 
Join Date: Jun 2009
Posts: 48
Thanks: 14
Thanked 1 Time in 1 Post
Default

Bingo! Thanks for your keen on-line support of your excellent book.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #7 (permalink)  
Old June 18th, 2009, 05:05 PM
Imar's Avatar
Wrox Author
Points: 33,533, Level: 80
Points: 33,533, Level: 80 Points: 33,533, Level: 80 Points: 33,533, Level: 80
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,225
Thanks: 7
Thanked 202 Times in 200 Posts
Default

You're welcome....

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

Did this post help you? Click the button to show your appreciation!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
View - Manage Styles will not show member4953 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 March 22nd, 2009 10:28 AM
Visual Studio C++ 2008 Express using RegQueryValueEx Gabriela Visual C++ 1 February 25th, 2009 06:47 PM
Visual Web Developer 2008 Express jjc9809 Visual Web Developer 2008 2 December 23rd, 2008 12:06 PM
Visual Web Developer 2008.. Express Edition Neamat .NET Framework 3.5 14 August 3rd, 2008 10:47 AM
Downloading VB 2008 Express Kiddi Visual Basic 2008 Essentials 1 June 11th, 2008 01:29 PM



All times are GMT -4. The time now is 02:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc