Sunset in Plaza Mayor

Entries in category ASP.NET

Server control IDs in ASP.NET 4

It's been known for a while that the new version of ASP.NET will take care of an old problem, the id mangling of server controls. In short, your carefully selected id could be rewritten into something like "ctl00_MainContent_" before rendered to the client. Since this is one of the most...

Visual Studio tips for web developers

I've used Visual Studio in its various incarnations since 1998 and despite all short-comings I still think it's one of the most powerful IDEs out there. Here are some small tricks I want to share to new ASP.NET developers. Use server-side comments for aspx pages I often see HTML comments...

Dissecting the new whitehouse.gov

There is a new guy in the White House and he's got a brand new website as well. The official whitehouse.gov had a major overhaul and the result is quite nice. They use ASP.NET 2.0 but the markup almost validates. The site also has a blog function, RSS feeds and...

Intellisense for jQuery

JavaScript has gone from hottie to dinosaur to hottie again. The revival of latter days is mostly due to the Ajax technique, but another important factor is the emergence of competent, lightweight framework libraries. One of the most popular is jQuery and even my brilliant colleagues seems to think well...

The importance of valid links

A major CMS company recently had a large restructure of their site. Unfortunately the link management seems to be have had a low priority. For example, some of the links look like this: javascript:__doPostBack('ctl00$MainRegion$MainContentRegion$repCategories $ctl02$LinkButton4','') Which means you cannot copy it or even open in a new tab. These kind...

MVC framework for ASP.NET

You may be familiar with the model-view-controller (MVC) architectural pattern. For instance, Ruby on Rails development use a MVC-based architecture. Scott Guthrie recently held a presentation at the ALT.NET Conference in Austin. The talk was filmed by Scott Hanselman and it's the first public demonstration of an upcoming technology: The...

ASP.NET and standards compliancy

ASP.NET has been taking a lot of hard words since its inception. Most of the complaints are well deserved, but there are some ways to make things slightly better. ASP.NET 1.1 Unfortunately, this one is pretty much beyond any salvation and I hope most people have left it by now....

Microsoft reveals .NET code

Today it was revealed that Microsoft will release the sourcecode to parts of the .NET Framework. It will likely occur during the shipment of VS2008 and .NET Framework 3.5. This means you won't have to peek through disassemblers such as Reflector any longer to understand what's going on under the...

Release of Visual Studio 2008

The gates of Microsoft continue to pour new applications into the world. One of the most awaited is the next version of Visual Studio, previously codenamed Orcas. I mentioned a lot of cool stuff featured in the upcoming version in an earlier post and now Beta2 has arrived with Javascript...

Visual Studio Orcas is getting closer

I have been using various blends of Visual Studio since 1998. Back then, we coded C++ in version 6.0 and thought we were happy. Four years later, Visual Studio .NET (version 7.0) came along and made most of us say goodbye to unmanaged development environments. We wouldn't be developers if...

Creating CSS Control Adapters

I often experience a gap between the drag-n-drop ASP.NET cowboys of Visual Studio and standards-aware CSS developers. The cowboys produce fast results in a fire-and-forget environment and couldn't care less for the quality of the HTML output, which in turn drives the standardistas insane. One solution to this is to...

WinFX renamed to .NET Framework 3.0

As expected, WinFX has now officially been renamed to .NET Framework 3.0. It contains the same lovely ingredients as its previous incarnation: WPF, WCF, WWF and now also WCS (Windows CardSpaces, previously known as InfoCard). However, don't forget that the .NET Framework 2.0 is still lurking beneath all this. This...

Breakpoint issues in Visual Studio.NET

When debugging large projects in VisualStudio.NET, I've sometimes noticed that the IDE has suddenly inserted breakpoints at random places in the code. This can be largely confusing, since they does not appear in the list of breakpoints and won't go away by a simple "clear bookmarks" command. There are several...

Firehoses in SQL Server

While modifying rows manually in a database with Enterprise Manager in SQL Server 2000, one may get this exciting error message: "Transaction cannot start while in firehose mode" Clear as mud. Even though this is better than "Error=47", I think it would be nice with a bit more information since...

Browsing in Visual Studio.NET

There is a lot of talk right now about the new tab functionality in IE7, and the fact that tabbed browsing actually is available in IE6 as well by means of a plugin. However, there is another Microsoft tool that can be used for tabbed browsing: Visual Studio .NET 2003....

Invoking Windows Forms controls from the web browser

How does Java applets fit into the world of .NET? The short answer is, "they don't", but it is possible to achieve a similar design using Windows Forms controls. This short guide assumes that you have some previous experience in web development on the Windows platform. Introduction ASP.NET may or...