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 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 30th, 2011, 12:28 PM
Authorized User
 
Join Date: Feb 2010
Location: Annapolis, MD USA
Posts: 42
Thanks: 9
Thanked 0 Times in 0 Posts
Default Lost Design View!

I was not trying to make any changes, but I must have hit some button that has made the problem I will now describe. The "Source" views still look the same (best I can tell), but the "Design" views appear for less than a second, then disappear. I see only a grey screen and the mouse buttons don't work (e.g., right mouse button to view page in the browser is no longer possible). This is for all pages.

What could I have done and/or where do I start looking? Thanks!

PS. I do see a huge vertical side bar that appears new on the Design view. I have scrolled up and down without seeing anything, however.
Reply With Quote
  #2 (permalink)  
Old March 30th, 2011, 01:07 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

Quote:
What could I have done and/or where do I start looking? Thanks!
No idea.... Have you tried restarting Visual Studio?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old March 30th, 2011, 02:06 PM
Authorized User
 
Join Date: Feb 2010
Location: Annapolis, MD USA
Posts: 42
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Imar,

I have tried restarting Visual Studio to no avail. I am now running spyware and will do a cold reboot.
Reply With Quote
  #4 (permalink)  
Old March 30th, 2011, 02:08 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

Also, try and see if the problem persists when you create a brand new website. Maybe one of your pages or the Master Page has some funky HTML that Visual Studio can't cope with....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #5 (permalink)  
Old March 30th, 2011, 03:28 PM
Authorized User
 
Join Date: Feb 2010
Location: Annapolis, MD USA
Posts: 42
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Imar,

The problem did not occur with a brand new website, so I went back and studied my css file since it occurred when I did not select a master. I found this interesting code at the beginning of the file. Notice the top and left numbers!

Code:
*
{
    /* 
    Defines the main font used throughout the entire site 
  */
    font-family: Verdana, Arial, Sans-Serif font-size: medium;
    margin-left: 5px;
    font-size: large;
    position: relative;
    top: -21512056px;
    left: -53870040px;
    width: 121px;
}
I have no idea how this happened, but I now have to figure out what was there before. I suppose these negative numbers are putting the design some place I can't see - maybe on the other side of the room!
Reply With Quote
  #6 (permalink)  
Old March 30th, 2011, 03:40 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

Ha, yes, or the other side of the town ;-) I think 21512056px is around 1.1 kilometer.... ;-)

You probably want to delete all of them except for the font. There's usually no need to set dimensional properties on the universal selector, unless you're using something like a CSS reset that sets all margins and padding and so on to 0.....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
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

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
Differences between "view in browser" to design view Dan Cern BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 12 November 1st, 2009 02:32 AM
MasterPages no design view ChrisN BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 13th, 2009 10:58 AM
Design view or source view tab doesnt appear Muddasar BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 March 25th, 2009 04:16 AM
Design view or source view tab doesnt appear Muddasar BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 0 March 24th, 2009 08:18 PM
Could not open in design view!! texasraven ASP.NET 1.x and 2.0 Application Design 4 March 17th, 2004 03:22 PM



All times are GMT -4. The time now is 11:26 AM.


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