.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 ...

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...

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 ...