 |
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

March 30th, 2011, 12:28 PM
|
|
Authorized User
|
|
Join Date: Feb 2010
Posts: 42
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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.
|
|

March 30th, 2011, 01:07 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
What could I have done and/or where do I start looking? Thanks!
|
No idea.... Have you tried restarting Visual Studio?
Imar
|
|

March 30th, 2011, 02:06 PM
|
|
Authorized User
|
|
Join Date: Feb 2010
Posts: 42
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
Imar,
I have tried restarting Visual Studio to no avail. I am now running spyware and will do a cold reboot.
|
|

March 30th, 2011, 02:08 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

March 30th, 2011, 03:28 PM
|
|
Authorized User
|
|
Join Date: Feb 2010
Posts: 42
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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!
|
|

March 30th, 2011, 03:40 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |
|