No nonsense ExtJs getting started tutorial 20 [Data Interaction: AJAX]

Source: Internet
Author: User

1. The Code is as follows:

1 <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> 2 

Server code/App_Ashx/Demo/Ajax. ashx

1 using System. web; 2 3 namespace HZYT. extJs. webSite. app_Ashx.Demo 4 {5 public class Ajax: IHttpHandler 6 {7 public void ProcessRequest (HttpContext context) 8 {9 if (context. request. params ["id"]! = Null & context. request. params ["id"]. toString () = "1") 10 {11 context. response. write ("{id: 1, name: 'zhang san', brithday:, height: 178, sex: '0', discribe: 'zhang San is. net software engineer <br/> is now learning ExtJs. '} "); 12} 13} 14 15 public bool IsReusable16 {17 get18 {19 return false; 20} 21} 22} 23}

 

2. The effect is as follows:

Reprinted please indicate the source: http://www.cnblogs.com/iamlilinfeng

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.