Ajax

 AJAX ASP.NET

In the past ASP.NET AJAX called "Atlas". This is a Microsoft implementation of an AJAX based programming control (framework) for working with ASP.NET. AJAX refer to Asynchronous JavaScript and XML, which, we can say the combination of JavaScript and XML (Extinction markup language) very simply put here, AJAX is a technique of transferring data between the server and client , without sending the entire asp.net web page, by creating a complete postback (reface asp.net web page). This allows for user to more experience for web development, Means loading dynamic content cannot done in the front of asp.net page it can loading in to background  without refreshing data of  page in asp.net. AJAX Used Application Gmail or Outlook Web Access is the best Example. 



AJAX Introduction:

AJAX refers Updating particular part of web page without change whole part of web page. It allow to user to update dynamic content in asp.net application page more easily and fast.  

Asp AJAX = Asp refer to active server page and AJAX refer to Asynchronous JavaScript and XML.

Internet Standards Based on AJAX:

Internet Standards Based on AJAX, and combination of:
  1. JavaScript- Refer to display data.
  2. CSS – Refer to style the data displayed data.
  3. DOM –Refer interact with the information.
  4. Object of XML HttpRequest –Refer to exchange data asynchronously.
  5. XML – Refer often used as the transferring data and formatting data.


Working with AJAX First you need some basic ASP.NET knowledge. If you don’t know Asp.net Programming. Then be sure to check out our Asp.net programming step by step here. Then you will get start using ASP.NET AJAX .

ASP.NET Example of AJAX:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Hello!</title>
</head>
<body>


    <form id="form1" runat="server">
        <asp:ScriptManager ID="MainScriptManager" runat="server" />
        <asp:UpdatePanel ID="pn" runat="server">
            <ContentTemplate>
                <asp:Label runat="server" ID="lbl" Text="Click!" />
                <br /><br />
                <asp:Button runat="server" ID="btn" OnClick="btn_Click" Text="Update" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>


</body>
</html> 


ASP.NET C# code for AJAX:


protected void btn_Click(object sender, EventArgs e)
{
    lbl.Text = "Hello, world ,time right now is: " + DateTime.Now.ToString();
}

Other ASP.NET Programming Post:      




Comments

Post a Comment

Popular posts from this blog