Archives

Archives / 2008 / April
  • Search Ajax control

     Highrise and other new Ajax enabled tools have this feature that when you type in a search query, it automatically updates the search results below. It's almost like a Auto-Complete Box, but with full results on the page instead of a drop down list below the control. Unfortunately I didn't find anything like this in the Microsoft ASP.NET Ajax Toolkit.

  • Error logging techniques using Database

    Nowadays error logging becomes mandatory and there has been lots of techniques/API's to log the errors. We develop a ASP.NET application and it works fine on your development machine, and when we deploy the application to the production we set the <compilation debug="false" ...> element in your web.config , of course it is the best practice, which makes the error not visible to the end users.
    Well, now, we got some exception and we wonder what is that error and you don't have any clue about error since we have not logged the exception and we were left at no man’s land and makes the developer job very tough without any clue about the error and hence we expect is to log the error and a notification mail to sent to the development so that we make the developer job much easier which is even best practice.

    In following article we are going to cover the topics on how to log the error in a simple way and of course in a efficient manner.

  • ASP.NET/Silverlight component development

    Almost all of the Silverlight demos you see out there are completely client-side, and invoke Web services to post/get data. This approach makes sense, but when you want to use Silverlight to functionally enhance your existing website, you may want to have some kind of integration between Silverlight objects and your server-side controls.

  • Scrolling Data Pagination using Ajax

    Tired of continuously clicking next page, next page, next page to find the data you are looking for? I always thought this was just something you had to deal with when viewing data on the Internet, that was until I took a look at the new Microsoft live image search. Instead of forcing the user to click next page to paginate the data the page catches the scroll event and fetches the next page of data and adds it to the output asynchronously. In this project I will expand upon my previous project Using Linq to paginate your ObjectDataSource, replacing the standard grid with a scrolling paginated grid. This example works by first creating an Ext JS grid, making a call to a custom json rpc handler to retrieve data, and by adding an event listener to the scrolling event of our grid. This article will focus primarily on the AJAX portion of this project to read more on the underlying data pagination technique please take a look at the previous version of this project.

  • Useful Extension methods

    In this article, Brian examines extension methods and how they can be used with .NET Framework applications. He begins with a short introduction and then provides a detailed explanation of the application of extension methods with the help of source code in C#.

  • Role Based Forms Authentication

    Using Role based forms authentication, we can restrict users of the site to accessing certain resource if they are not part of a particular role. In this article, Satheesh demonstrates how to build sites with this type of authentication. He provides a short overview of various Login Controls and Providers and then discusses a scenario with detailed explanation of various aspects of the sample application with screenshots and source code.

  • Implementing a Session Timeout Page

    In this article, Steve walks through the steps required to implement a Session Logged Out page that users are automatically sent to in their browser when their ASP.NET session expires. He examines each step with the help of detailed explanation supported by relevant source code.

  • Dynamic GridView and DataList in ASP.NET 2.0

    Sometimes we may be required to build GridView and DataList dynamically with different styles and with child controls in our project. This article will help you accomplish this task in ASP.NET 2.0 with the help of a case study. Satheesh first provides a brief overview of the scenario and then explores the step-by-step implementation of each module with supported source code. The steps include creation of a Template class, implementation of a dynamic DataList, using the Template class in DataList, implementation of a dynamic GridView, and the usage of Template class in GridView. The article is accompanied by the related Visual Studio project which enables you to instantly test drive the application.

  • Encapsulating Google's MapData

    Florian Drevet show you how to build a basic ASP.NET WebControl whose goal is to use Google MapData “feature” (in few words : an dynamically generated image with basic Google Map features)

  • Useful Generic array functions

    The standard .NET Framework offers quite a few generic functions to munipulate arrays, however there are some functionalities where extra code will be needed such as Appending to the array, removing an element from the array, or removing all elements that fall under a condition.

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

  • Implementing a Session Timeout Page in ASP.NET

    In this article, Steven Smith walks through the steps required to implement a Session Logged Out page that users are automatically sent to in their browser when their ASP.NET session expires. He examines each step with the help of detailed explanation supported by relevant source code.