CSS can powerfully open the doors to a lot of rich and unique techniques. Today we are presenting a round-up of CSS coding, creative approaches and techniques. Using CSS to Do Anything: 50+ Creative Examples and Tutorials 101 CSS Techniques Of All Time- Part 1 101 CSS Techniques Of All Time- Part 2 ...
Thursday, July 31, 2008
Tuesday, July 29, 2008
July 29, 2008
If you don't know about CTRL+I in Visual Studio, go try it, I'll be waiting... So? Ain't that cool? (CTRL+I does incremental search, so it will progressively select the first occurrence of whatever you type. It's a lot less disruptive than CTRL+F as a means to search your files) ...
July 29, 2008
The Live team just shipped a great suite of controls that enable Live integration into any ASP.NET web site. The suite contains Map, LiveID, Messenger controls and more. Check it out! http://dev.live.com/tools/ Screencast: http://channel9.msdn.com/posts/Mark+Brown/Virtual-Earth-ASPNET-Control-CTP-Release/Default.aspx#/ReplyTo/417721/default.aspx ...
Thursday, July 24, 2008
July 24, 2008
I recently added membership, accounts, login, etc. to the AspDotNetMVC site. While doing so I decided I wanted to support OpenID, too. However, I didn't want to go with only OpenID because I needed ASP.NET Membership in place to work in conjunction with another application, a Kigg site used as a service for rating content on the AspDotNetMVC site. I could have probably converted the Kigg code base to use OpenID but I also wanted to allow people...
July 24, 2008
In fact in my latest project, I've removed the ScriptManager from my ASP.NET pages entirely. Originally I was including both jQuery and the ScriptManager on my pages because I just couldn't live without the ease and simplicity of calling page methods with ASP.NET AJAX. Well, with a little help from Dave Ward and Rick Strahl, I realized that calling ASP.NET page methods (and web services) from jQuery is really pretty simple. ...
July 24, 2008
This article is one in a series of articles on ASP.NET's membership, roles, and profile functionality. · Part 1 - learn about how the membership features make providing user accounts on your website a breeze. This article covers the basics of membership, including why it is needed, along with a look at the SqlMembershipProvider and the security Web controls. · Part 2 - master how to create roles and assign users to roles. This article...
Tuesday, July 22, 2008
July 22, 2008
I was reading this particular entry from AlexJ's blog, in which he discussed how to use anonymous type returned from one function in another function. I strongly recommend you read it first before reading any further. Basically, most people would think that there is no easy way to return a strongly typed anonymous type from a function since you wouldn't know what it is that you are returning beforehand. Thus, if you wish to return an anonymous...
July 22, 2008
I have worked on a variety of ASP.NET web applications over the past few years and almost all of them needed to collect address data in some form or another. One thing I have never been able to find out there is a decent ASP.NET based user control that allowed the selection of locale (state / province & country.) With this idea in mind, I set out to create my ASP.NET “Locale LINQ” user control. What It Do So here are the basic features: -...
Monday, July 21, 2008
July 21, 2008
Use the following setting in the in the machine.config to reduce the startup time of the application. <configuration> <runtime> <generatePublisherEvidence enabled="false"/> </runtime> </configuration> In one of the recent projects, the home page took ~54 seconds to load on IISreset. This came down to ~10 seconds by the above setting...
July 21, 2008
I ran across a C# file that had been removed from its csproj file, but it hadn't been deleted from version control. So James wrote a script (Chris Sidi had already written one, though) to find the .cs files that weren't in the "containing" .csproj file param([string]$csproj = $(throw 'csproj file is required')) $csproj = Resolve-Path $csproj$dir = Split-Path $csproj # get the files that are included in compilation$xml =...
Friday, July 18, 2008
July 18, 2008
Abstract HttpHandlers are powerful tools of ASP.NET; they are used fairly often, and give great power to developers using them. In this article, Brendan describes the basics of how to use these tools. He describes in easy to understand terms how one can implement the IHttpHandler class, and illustrates his explanation using code snippets and screen shots. Introduction One of the more interesting pieces of ASP.NET is the concept of HttpHandlers....
July 18, 2008
I was browsing through the usual newsgroups I visit and came up with this post about LINQ to SQL vs EDM and thought I should share it here. LINQ to SQL and the Entity Framework have a lot in common, but each have features targeting different scenarios. LINQ to SQL has features targeting "Rapid Development" against a Microsoft SQL Server database. Think of LINQ to SQL as allowing you to have a strongly-typed view of your existing database schema....
July 18, 2008
We have an old .NET 1.1 web application which I have to support and a recent change in the login process for a select few customers has been causing haywire with every users session. The folks at QA have been giving me a really hard time lately with this bug and I just couldn't get around as to what was causing this weird behavior. The problem was that if we set the forms authentication and session timeouts to 10 minutes and after the 10th minute...
Wednesday, July 16, 2008
July 16, 2008
So I thought I would put all the information together in one place that I have been creating over the past few months. I’ll try to go through all the steps and the different things that you will need to use in order to track down a problem. Realizing there is a problem So the first step is finding out there is some kind of problem in the first place. There are a number of methods that you could use to find this out: Visitor of...
Tuesday, July 15, 2008
July 15, 2008
LINQPad supports everything in C# 3.0 and Framework 3.5: LINQ to SQL LINQ to Objects LINQ to XML LINQPad is also a great way to learn LINQ: it comes preloaded with 200 examples from my book, C# 3.0 in a Nutshell. There's no better way to experience the coolness of LINQ and functional programming. And LINQPad is more than just a LINQ query...
July 15, 2008
ASP.NET has powerful built-in caching capabilities that you can access through the cache object’s familiar and intuitive "key and item" data access model. Using this model, it’s natural to write code that uses the cache object as you would a collection, searching for cached data by keys and relying on the absence of a key to indicate that you need to retrieve the data from a data store. More advanced developers encapsulate the caching behavior...
July 15, 2008
Let me at the start of the post first say that I love ReSharper. It is by far the best refactoring support that can be found for VB.NET. I haven't yet used it for C# but are told but esteemed colleague that it rocks.But... (there is always a but isn't it?) it messes up the Intellisense in my Visual Studio. The same colleague (kudos to Jocke) tipped...
July 15, 2008
In Visual Studio 2008, many new features were implemented that eliminate the top issues found in the VS 2005 Web Test recorder, as covered in the white paper Web Test Authoring and Debugging Techniques. While many areas have been addressed, there will still be times when record/playback fails or does not give the desired result. I’ll be writing a series of blog articles on how the recorder works, “knobs” in the registry that will let you control...