help.net

<font size="2"><br />Musing on .Net</font>

  • Creating an AJAX-Enabled Calendar Control

    Introduction
    Go to any travel or event booking website and you'll find the same user interface for collecting date information: the Calendar. Providing such an interface in an ASP.NET application is a breeze, thanks to the built-in Calendar Web control. There are two downsides to ASP.NET's Calendar control: first, it is not very useful when selecting dates far into the future or past, as you can only navigate to the next or previous month; and, second, the Calendar does not use AJAX techniques, so each click, be it selecting a date or moving to the next or previous month, requires a full postback.

    Mehmet Genc addressed this first shortcoming in Extending the Calendar Control's Date Navigation by showing how to add month and year drop-down lists. But Mehmet's article was written in 2004 and since then AJAX-enabled websites have become all the rage. I decided it was high time to update Mehmet's custom Calendar control to support AJAX. Specifically, I implemented the AJAX-enabled Calendar control as a User Control. The User Control renders a TextBox control that, when clicked, displays a Calendar control from which the user can select the date. Like with Mehmet's Calendar, users can quickly jump to a particular month or year by using two drop-down lists. And best of all, the user experience is very responsive.

  • Implementing the MVC Design Pattern in ASP.NET

    In this article, Joydip explains the basics of the MVC design pattern, the advantages and the disadvantages of it. He also examines how effectively we can decouple the business logic layer of an application from the UI layer. The article provides source code to illustrate the concepts in C# with relevant explanation.

  • Building a Simple Blog Engine with ASP.NET MVC and LINQ Part 2

    Microsoft released the first CTP of ASP.NET 3.5 Extensions and it includes ASP.NET MVC Framework as one of the main extensions for ASP.NET 3.5. In the first part of this article series about building a simple blog engine with ASP.NET MVC and LINQ, Keyvan introduces the MVC pattern, ASP.NET MVC Framework, and the fundamentals of a simple blogging engine.

  • LINQPad

    LINQPad lets you interactively query SQL databases in a modern query language: LINQ.  Kiss goodbye to SQL Management Studio!

  • Fast and search-engine-friendly ASP.NET-GridView

    The ASP.NET GridView is a powerful and userfriendly control for displaying a table of data. It has nice features like sorting, paging, databinding or templatefields. When loading a large amount of data, the paging feature can be used. But this leads to some problems with search-engines and memory usage. How this can be avoided is the topic of this article.

  • Implementing style sheet code dynamically

    This article examines the different ways in which you can implement style sheets dynamically. Initially, you will learn the dynamic implementation using JavaScript code. Frans then explores the process of working with style sheet code from the database. He wraps up the article by providing some tips to further enhance the style sheet code. The article is supported by relevant source code and a sample application is provided at the end.