Contents tagged with ASP.NET AJAX

  • Login/SignUp Screen Using Ajax ModalPopup Extender

    This is a sample application which shows how to use ModalPopupExtender for Logging and Signup for any ASP.NET web application. In this quick demonstration, the author show how we can implement Modal Dialog Box using AJAX in ASP.NET. Modal Dialog Box (Formally called ModalPopupExtender) is extremely essential in today’s application as it avoids redirecting to a new page just to login or signup the users. A simple example can show how to implement the same.

  • Accessible UpdatePanel

    UpdatePanel is a great way to add Ajax features to an ASP.NET application at a minimal cost. Because it's based on regular postbacks, it also degrades gracefully when JavaScript is not present. But one thing it doesn't do well out of the box - and this is actually the case for any asynchronous update to the DOM - is informing screen readers that new content is present. This article by Bertrand Le Roy and the accompanying code show how to work around that problem and give assistive technology users access to the benefits of Ajax.

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

  • 10 ASP.NET Performance and Scalability Secrets

    ASP.NET 2.0 has many secrets, when revealed, can give you big performance and scalability boost. For instance, there are secret bottlenecks in Membership and Profile provider which can be solved easily to make authentication and authorization faster. Furthermore, ASP.NET Http pipeline can be tweaked to avoid executing unnecessary code that gets hit on each and every request. Not only that, ASP.NET Worker Process can be pushed to its limit to squeeze out every drop of performance out of it. Page fragment output caching on the browser (not on the server) can save significant amount of download time on repeated visits. On demand UI loading can give your site a fast and smooth feeling. Finally, Content Delivery Networks (CDN) and proper use of HTTP Cache headers can make your website screaming fast when implemented properly. In this article, you will learn these techniques that can give your ASP.NET application a big performance and scalability boost and prepare it to perform well under 10 times to 100 times more traffic.

    In this article Omar al Zabir have shown the following techniques:

    • ASP.NET Pipeline optimization
    • ASP.NET Process configuration optimization
    • Things you must do for ASP.NET before going live
    • Content Delivery Network
    • Caching AJAX calls on browser
    • Making best use of Browser Cache
    • On demand progressive UI loading for fast smooth experience
    • Optimize ASP.NET 2.0 Profile provider
    • How to query ASP.NET 2.0 Membership tables without bringing down the site
    • Prevent Denial of Service (DOS) attack

    The above techniques can be implemented on any ASP.NET website especially those who use ASP.NET 2.0's Membership and Profile provider.

  • ASP.NET AJAX Extender for multicolumn drag & drop

    Drag and Drop is very popular in AJAX websites. You can rearrange content on a website as you like and gives you some level of personalization. However, free form drag drop is a problem because the content gets messy as you drag things around on the page and there's no logical organization. So, a popular choice for drag & drop is to use column wise content flow where you can drag and drop content within column or across column. This ASP.NET AJAX Extender allows you to do that very easily.

  • Working with ModalPopup Ajax Control

    In this article the author shows how to display a simple popup window to the user with the ModalPopup Extender available in the ASP.NET Ajax Toolkit. After giving a few example cases of when to use the ModalPopup, the author walks through how to use this AJAX Extender control using source code snippets and a source download.

  • An information box control to display messages using Ajax

    Our objective is to provide an Ajax equivalent to WinForms’ MessageBox and Javascript alert, which is adapted to both the HTTP submit pattern and the display of messages of Ajax callbacks. The function is fulfilled by an information box ASP.NET server control which displays messages within the page. Our environment is ASP.NET 2.0 on Windows and IIS and our information box uses ASP.NET Ajax Extensions 1.0 which you can download and install from http://www.asp.net/ajax/.