TOC

This article is currently in the process of being translated into Thai (~37% done).

The Basics:

Introduction

ASP.NET AJAX, ในอดีตอาจเรียกชื่อหนึ่งว่า "Atlas" เป็นอีกหนึ่งเป้าหมายของทางไมโครซอฟต์ที่จะพัฒนาในส่วนของ AJAX Framework ให้ทำงานภายใต้ภาษา ASP.NET ได้ (ถึงแม้ว่าจะสามารถใช้งานบนแพลตฟอร์มอื่นๆ ได้เช่นกัน) AJAX เกิดจากการนำโครงสร้างภาษา Asynchronous JavaScript (เป็นภาษา JavaScript ประเภทดำเนินประมวลผลโดยไม่ต้องรอ) และภาษา XML ซึ่งง่ายต่อการเขียน โดยภาษานี้ถูกทำหน้าที่ถ่ายโอนข้อมูลระหว่างฝั่งเซิร์ฟเวอร์กับผู้ใช้ โดยไม่ต้องมีการเปลี่ยนแปลงข้อมูลทั้งเพจ (การรีเฟรชเว็บเพจเพื่อดึงข้อมูลแบบทะั้งหมดทำให้หน้าเว็บทำงานได้ช้าและประสิทธิภาพในการประมวลผลน้อยลง) และได้ Postback ที่สมบูรณ์ขึ้น (Postback เป็นการส่งข้อมูลไปยังเซิร์ฟเวอร์ แต่ไม่มีการ Redirect ซึ่งทำให้หน้าเว็บรีเฟรชแต่อย่างใด ทำให้การถ่ายโอนข้อมูลทำได้รวดเร็วขึ้น) ซึ่งเป็นอีกหนึ่งภาษาขั้นสูงที่นิยมกันในปัจจุบัน เนื่องด้วยภาษานี้จะทำงานแบบเบื้องหลัง เช่น ต้องการเรียกข้อมูลอีเมล์โดยไม่ให้เว็บเพจรีเฟชร เราสามารถนำ AJAX ช่วยดึงข้อมูลขากเว็บเซิร์ฟเวอร์ได้ เป็นต้น

While it's perfectly possible to use Ajax without Microsoft ASP.NET AJAX, a lot of things are way easier, since Microsoft has wrapped some of most tedious parts of Ajax into their implementation. For instance, the 3 most popular browsers requires different ways of using Ajax, and have different JavaScript implementations. ASP.NET AJAX simplifies this a lot and allows you to write the same code to target all 3 major browsers.


This article has been fully translated into the following languages: Is your preferred language not on the list? Click here to help us translate this article into your language!