Posts Tagged ‘Ajax’

Using AjaxControlToolkit Modal Popup

The Modal Popup extender comes with Ajaxcontrol toolkit and  allows a page to display content to the user in a “modal” manner which prevents the user from interacting with the rest of the page.


ModalPopup with In Various Scenarios using Javascript, iframes, etc

ModalPopup Examples

Other Examples can be found at


Using Jquery, Json with

Using Ajax Update Progress

March 22, 2010 1 comment

Here in this article, we will learn how to use updateprogress control that comes ajax toolkit.

<asp:ScriptManager ID=”scriptManager” runat=”server” />

<asp:UpdatePanel ID=”UdpLogin” runat=”server”>


Content comes here…


<asp:Panel ID=”UpdateProgress” runat=”server” CssClass=”ProgressContent” Width=”100%”
<asp:UpdateProgress ID=”UpdateProg” runat=”server” DisplayAfter=”1″ AssociatedUpdatePanelID=”UdpLogin”>
<asp:Panel ID=”UpdatePro” runat=”server” CssClass=”Trans” Width=”100%” Height=”100%”>
<table width=”100%” height=”100%”>
<td align=”center” valign=”middle” width=”100%” height=”100%”>
<asp:Image ID=”imgProg” runat=”server” ImageUrl=”~/img/loading.gif” AlternateText=”Updating ……”
ImageAlign=”Middle” />

Css Styles to include here are as follows:

/* StyleSheet for Update Progress */
font-family: verdana;
font-size: 11px;
color: #000000;
font-weight: normal;
text-decoration: none;

background-color: White;
filter: alpha(opacity=70);
opacity: 0.7;
position: absolute;
left: 0px;
top: 0px;
font-family: verdana;
font-size: x-small;
color: Green;
font-weight: bold;
text-decoration: none;
height: auto;

Please visit my previous article for downloading loading images:

Refresh Content in UpdatePanel using Ajax Timer Control

January 19, 2010 1 comment

Lets say we have a requirement where we have a label control and we have assigned date time to its text, and in every 5 seconds we want to update the time, over there we need to place the label control inside the update panel and use a timer control to update its content.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="">
<head runat="server">
    <title>Update Panel and Timer</title>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:Timer runat="server" id="UpdateTimer" interval="5000"
          ontick="UpdateTimer_Tick" />
        <asp:UpdatePanel runat="server" id="TimedPanel" updatemode="Conditional">
                <asp:AsyncPostBackTrigger controlid="UpdateTimer"
                  eventname="Tick" />
                <asp:Label runat="server" id="lbldatetime" />

In the codebehind:

protected void UpdateTimer_Tick(object sender, EventArgs e)
lbldatetime.Text = DateTime.Now.ToString();

Download Ajax Loading Image

May 30, 2009 1 comment

Since all the Ajax interactions happen behind the scenes asynchronously, the user doesn’t understand what’s going on: sometimes the user doesn’t need to know what’s going on (like when you are just reloading some data), but when he presses a button he needs to know that he did the right thing and that something is happening.

So we can show an “ajax loading image” when ajax process is going on..

You can generate these images from:

You can also download from:

Also you can search the google for ajax loading image and you will be able to see lots of images..

Categories: Ajax Tags: , ,

Download Cheatsheets – .Net, Sql Server, Php, Regular Expressions, CSS, Ajax,Javascript….

A cheat sheet or crib sheet is a concise set of notes used for quick reference.

You can download cheatsheets of various technologies like:







Sql Server




Regular Expressions





Data Navigation with the ListView & GridView, DataPager and SliderExtender Controls

Listview – Its a new control in 3.5, similar to gridview but much more capabilities than gridview..
Also Datapager – a new control in 3.5 used for data paging.
SliderExtender – a control of ajax toolkit

Combining all these three you can do wonders…

Below is an example of listview with datapager and slider extender

Another example is of gridview with dataper and slider extender

The above links has source code to download, you can also view the live demo and play with the example..