.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Workaround: Empty Design View for User Controls

I've noticed quite a few people run into the issue "Why is design mode empty for my web user control (ASCX)?".  It's not obvious what might be causing this bug, so I thought I'd offer an explanation and a couple workarounds. Problem You have a user control that has a "link" tag to an external style sheet or a "style" tag with local ...

Tips & Tricks: Upgrading Projects from ASP.NET MVC Preview 1 to Preview 2 (MIX 2008)

  If you previously had ASP.NET MVC Preview 1 (CTP 1) and had already created a few projects on it then you might have to take this additional step to convert your project to ASP.NET MVC Preview 2 (MIX 2008) [After installing MVC Preview 2 (Resources here)]. In ASP.NET MVC Preview 2 we introduced a special MVC Project flavor GUID for ...

Absolute and relative positioning in Visual Web Developer 2008 designer

Design view in Visual Studio and Visual Web Developer Express 2008 provides several tools that help with absolute and relative positioning of controls. I'd like to describe how do they work and what kind of visual hints the designer provides.How do I set my control position to absolute? Use Format | Position menu:(image)  ...

JScript IntelliSense: Handling Errors

I often get the question “Why isn’t IntelliSense working?”.  The most common cause is an error in one of the referenced scripts.  If there was an IntelliSense update error, the status bar will tell you. (image) Given this situation, the Error List  will complement the status bar with one of two messages. Error Message 1: ...

Tips & Tricks: Start-Up Options and Instances of ASP.Net Development Server in a Multi-project Solution

If you have more than one project in your solution you can use following options of solution properties to set your start up actions...  You can get the below dialog by right clicking your solution and going to its properties: (image)   If you have more than one Web project (either Web Site, WAPs or both) in your solution and choose...

Workaround: Debugging Global.aspx.cs Application_Start() with ASP.Net Web Server within Visual Studio

When you add a global.asax file to your "Web Application Projects (WAPs) like below: (image) and then write code in Application_Start event and try to debug it like below using Visual Studio inbuilt Development Web Server (image)   Then during your first debug the breakpoint is hit but during your subsequent debug runs the breakpoint is...

Tip/Trick: ASP.NET Mobile Development with Visual Studio 2008

If you are using Visual Studio 2008, you might have noticed that it doesn't have item templates for ASP.NET Mobile Web Forms (which were previously available in Visual Studio 2003).   To help users with this scenario, I've created the following item templates for ASP.NET Web Site and ASP.NET Web Application projects: Mobile ...

Orcas Beta2 Gotcha: No ASP.NET controls in toolbox, no ASP.NET intellisense/validation on pages

We’ve heard a few reports of cases with VS Orcas Beta2 where ASP.NET controls do not show up on the toolbox and ASP.NET tag intellisense and validation is broken in HTML source view.  All of the cases reported so far have been with Vista.  The root cause of this is that the Orcas Beta2 version of System.Web.Dll did not get ...

Workaround for Beta 2 JavaScript IntelliSense and Colorization Issue

We have discovered that in a very limited number of setup scenarios of Visual Studio 2008 Beta 2, Jscript IntelliSense and Colorization may not work property after installing the product. You will get no IntelliSense in JavaScript code, and all JavaScript code will appear black (i.e., colorization of keywords will be missing). The image below ...