Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

CustomValidator¿Ø¼þ+ajax ʵÏÖ×¢²áʱµÄÒì²½ÑéÖ¤

ÔÚ.netµÄÑéÖ¤¿Ø¼þÖÐÓÐÒ»¸öCustomValidatorÑéÖ¤¿Ø¼þ£¬ÆäÊôÐÔClientValidationFunctionΪ¿Í»§¶Ëº¯Êý£¬ÔÚÐèÒªÑéÖ¤µÄ¿Ø¼þʧȥ½¹µã»òÕßpostÊý¾Ýʱ£¬µ÷Óøú¯Êý¡£
ǰ̨£º
 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomValidatorTest.aspx.cs" Inherits="Web.CustomValidatorTest" %>
<!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></title>
<mce:script type="text/javascript" src="jquery/jquery-1.2.6-vsdoc-cn.js" mce_src="jquery/jquery-1.2.6-vsdoc-cn.js"></mce:script><%--jqueryÎļþ--%>
<mce:script type="text/javascript"><!--
function validator(oSrc, args) {
//oSrc Ϊobject ÀàÐÍ£¬ÎªCustomValidator1¶ÔÏó
//argsΪÓÐÁ½¸öÊôÐÔ£ºValueΪÑéÖ¤¿Ø¼þµÄÖµ£¬
// IsValid ΪboolÀàÐÍ£¬±íʾÊÇ·ñÑé֤ͨ¹ý
$.ajax({
async: false, //ͬ²½£¬Òì²½²»ÐУ¬ÔÚajaxΪ·µ»ØÖ®Ç°£¬º¯Êý¾Í½áÊø£¬Ìá½»IsValidµÄÖµÁË¡£
type: "POST",
url: "CustomValidatorTestHander.ashx",
data: "val=" + args.Value,
success: function(msg) {
if (msg == "123") {
//Èç¹ûºǫ́·µ»ØÖµÎª123£¬Ñé֤ʧ°Ü
args.IsValid = false;
//todo
//ÕâÀïÊÇ·ñ¿ÉÒÔÐÞ¸ÄoSrc¶ÔÏóÀ´ÊµÏÖÒì²½ÇëÇóÄØ£¿
}
}
});
}

// --></mce:script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>ÊäÈë123Ñé֤ʧ°Ü£º</td>
<td><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
<td><asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="ÑéÖ¤²»Í¨¹ý"


Ïà¹ØÎĵµ£º

Dojo1.3.xµÄAjaxʾÀý


Dojo1.3.x
µÄ
Ajax
ʾÀý
ÕûÀíÈË£º»Æ³Ï
QQ
Ⱥ£º
65643887
ÕâÆªÎÄÕÂÖ÷ÒªÊǰïÖú¶Ô
Dojo
¸ÐÐËȤµÄÅóÓÑÃÇ¿ì
ËÙʵÏÖÍøÕ¾ÉϵÄÀý×Ó¡£
http://sitepen.com/labs/guides/?guide=DojoQuickStart#Ajax
Ëü½Ì³Ì·ÖÁË
3
²¿·Ö£¬ÆäÖеÄÀý×Ó²»ÈÝÒ×
ÉÏÊÖ¡£ÎÒÕâÀïÌṩһ¸ö´ò°üÎļþ
AjaxWithDojo.war
ÏÂÃæÎÒ½«Ïêϸ˵Ã÷²Ù×÷²½Ö ......

12¸öÓÅÐãµÄjavascript(ajax)µ¯³ö²ã

Thickbox

-
»ùÓÚ
jQuery
£¬Ö§³Ö AJAX£¬ÇáÁ¿¼¶µÄ¶øÇұȽϸßЧ¡£Ö§³ÖͼƬÓëHTMLÄÚÈÝ¡£´óСԼΪ
40k£¬Ä¿Ç°»¹¿É×÷Ϊ WordPress
µÄ²å¼þʹÓá£Õâ¸öjsµÄÓŵãÔÚÓÚÓ룬¸¸¼¶µÄÔ­Ò³Ãæ¹ö¶¯ÌõËæÊó±ê¹ö¶¯µÄʱºò£¬µ¯³öµÄ²ã²¢²»Òƶ¯£¬¶øÊ¼ÖÕ´¦ÓÚä¯ÀÀÆ÷µÄ¹Ì¶¨Î»Öá£
 
GreyBox

- ´´½¨ iframe µÄµ¯³ö½çÃæ£¬¿ÉʹÓÃͼƬ ......

Ajax ºÍ REST£¬µÚ 1 ²¿·Ö

2006 Äê 11 ÔÂ 09 ÈÕ
·þÎñÆ÷¶Ë Web Ó¦ÓóÌÐòÒò²ÉÓø»Ó¦ÓóÌÐòÄ£Ðͺͽ»¸¶¸öÐÔ»¯ÄÚÈݶø¾ß±¸ÁËÈÚÈëʽ£¨immersive£© µÄÌØµã£¬ÕâÖÖÌØµãԽͻ³ö£¬Ó¦ÓóÌÐò¼Ü¹¹¶Ô Web ¼Ü¹¹·ç¸ñ REST£¨Representational State Transfer£©µÄÎ¥±³¾ÍÔ½¶à¡£ÕâÖÖÎ¥±³»á½µµÍÓ¦ÓóÌÐòµÄ¿ÉÉìËõÐÔ£¬Ôö¼Óϵͳ¸´ÔÓÐÔ¡£Í¨¹ýÓë REST Ï໥Эµ÷£¬Ajax ¼Ü¹¹½«Ê¹ÈÚÈë ......

Ajax»ù´¡½Ì³Ì

»ìãç³õ¿ª£¬Ò»Çж¼ÄÇô¼òµ¥¡£ÎªÁËÁ¬½ÓÃÀ¹úµÄÉÙÊý¼¸¸ö¶¥¼âÑо¿»ú¹¹£¬ÈËÃÇÉè¼ÆÁË×îÔçµÄ“Internet”£¬ÒԱ㹲ͬ¿ªÕ¹¿ÆÑ§Ñо¿¡£²»ÂÛÊÇͼÊé¹ÝÔ±¡¢ºËÎïÀíѧ¼Ò£¬»¹ÊǼÆËã»ú¿ÆÑ§¼Ò£¬¶¼±ØÐëѧϰһ¸öÏ൱¸´ÔÓµÄϵͳ¡£1962Ä꣬ÂéÊ¡Àí¹¤Ñ§Ôº£¨MIT£©µÄJ.C.R. Licklider×îÔçÌá³öËûµÄ“Galactic Network”£¨³¬´óÍøÂç£©Ë ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ