Cascading Style Sheets Tutorial

Ajax in the asp.net application of the basic

  In fact, the basic use all understand that they did not think that cite an example. 

  <script Ype="text/javascript"> 
  Var xmlHttp; 
  / / Create an object XmlHttpRequeset 
  Function createXMLHttpRequest ()…{ 
  If (window.ActiveXObject )…{ 
  XmlHttp = new ActiveXObject ( "Microsoft.XMLHTTP"); 
  ) 
  Else if (window.XMLHttpRequest )…{ 
  XmlHttp = new XMLHttpRequest (); 
  ) 
  ) 
  / / Beginning of a request 
  Function startRequest ()…{ 
  CreateXMLHttpRequest (); 
  XmlHttp.onreadystatechange = handlestatechange; 
  XmlHttp.open ( "GET", "innerHtml.xml", true); 
  XmlHttp.Send (null); 
  ) 
  Function handlestatechange ()…{ 
  If (xmlHttp.readyState == 4 )…{// describes a "loaded" state at this time, response has been completely received. 
  If (xmlHttp.status == 200 )…{// 200 that received successful 
  Document.getElementById ( "results"). InnerHTML = xmlHttp.ResponseText; 
  ) 
  ) 
  ) 
  </ Script> 

  Aaa.aspx the innerHtml.xml replaced, and then in the html aaa.aspx all empty.    Aaa.aspx.cs only in the Page_Load function inside to write on the data, then we can.    As follows 

  Protected void Page_Load (object sender, EventArgs e) 
  (… 
  Response.Clear (); 
  Response.ClearContent (); 
  Response.ClearHeaders (); 

  Request.QueryString string custID = [ "CustID"]. ToString (). Trim (); 

  / / String custID = "11532"; 

  GetAssetIDsByCustID string assetIDs = (custID); 
  Response.Write (assetIDs); 

  Response.End (); 
  ) 

  AssetIDs here can be made string, xml, json.    Recommended json here, the transmission is good because it is said. Net json now also provide good support. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: Basic

Releated Posts

  • Several basic CSS text filter effects
  • Getting Started Guide: CSS basic grammar and usage entry
  • CSS reference (1, the basic grammar)
  • [CSS basic knowledge] in the CSS ID and the distinction between Class
  • Chapter I of the basic understanding of CSS

This entry was posted on Friday, November 30th, 2007 at 12:00 am and is filed under CSS Tutorial. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« Web2.0 three major changes in marketing
AJAX Based on the WEB file upload control the progress of »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial