JQueryÔËÓÃajax×¢²áÓû§ÊµÀý
//JS´úÂë
function checkname() {
var Msg = document.getElementById("d_username");
var chk = CheckN();
if (chk) {
$.ajax({ url: 'registerOK.aspx',
type: 'POST',
data: { lb: "checkname", username: $("#username").val() },
dataType: 'html',
timeout: 1000,
error: function() { alert('³öÏÖδ֪´íÎó¡£'); },
success: function(data) {
if (data == "¶Ô²»Æ𣬸ÃÓû§ÃûÒѱ»×¢²á£¡") {
Msg.className = "d_err";
Msg.innerHTML = data;
$("#hiddencheckname").val("no");
}
if (data == "¹§Ï²£¬¸ÃÓû§Ãû¿ÉÒÔ×¢²á£¡") {
Msg.className = "d_ok";
Msg.innerHTML = data;
&
Ïà¹ØÎĵµ£º
ת×Ôhttp://cnp.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-1909185-uid-62827.html
ºÃ¾ÃûÓж¯ajaxÁË£¬Í»È»Ò»Ê¹ÓÃ벡¶à¶à£¬ÌáʾType䶨Ò壬Sys䶨Ò壬ÆäʵÕâ¸ö¶«Î÷ÎÒ£¬ÒÔÇ°Óöµ½¹ý£¬Ò²½â¾öÁË£¬Ê±¼äÒ»³¤¾ÍÍü¼ÇÁË¡£½ñÌì¾Í°Ñ½â¾ö·½·¨Ð´³öÀ´ºÍ´ó¼Ò·ÖÏí¡£
ÆäʵºÜ¼òµ¥£¬´ËʱÎÒÃÇÒª×öµÄÊÇÔÚ web ......
[http://www.okajax.com/a/200905/10ajax_framework_2.html]
1. APS.NETµÄ¹Ù·½½â¾ö·½°¸
ASP.NET AJAX
꿅᣼ajax.asp.net
ASP.NET AJAXÊÇ΢Èí.NETƽ̨ÉϵĽâ¾ö·½°¸£¬Ìṩº¸ÇËÅ·þÆ÷¶ËÓëÓû§¶ËËùÐèµÄAJAX¼¼ÊõÓëJavaScriptÕûºÏ»úÖÆ¡£
͸¹ýÓëÏÂÔØÓë°²×°ASP.NET AJAXµ½Visual Studio 2005µ±ÖУ¬¼´¿ÉÀûÓÃÔ¤ÉèµÄ¿ØÖÆÏ¿ª· ......
ÎÒ×Ô¼ºÐ´¸ö¿ìËÙÈëÃŵÄASP.NETµÄÍêÈ«¿ÉÊÓ»¯Ajax¿ª·¢£¬ÓÃVisual studio2008ÀïÃæ×Ô´øµÄAJAX Extensions¿Ø¼þ¡£
1£¬Ê×ÏÈ£¬ÍùÒ³ÃæÀïÃæקһ¸öScriptManager¿Ø¼þ£¨×¢²á½Å±¾£¬±ØÐëÔÚËùÓзþÎñÆ÷¿Ø¼þ֮ǰ³öÏÖ£©
2£¬ÍùÒ³ÃæÀïקһ¸öUpdatePanel¿Ø¼þ£¨¾Ö²¿Ë¢Ð¿ؼþ£©
3£¬ÔÚUpdatePanel¿Ø¼þµÄÃæ°åÀקһ¸öTextBox¿Ø¼þTextBox1ºÍÒ»¸öLa ......