日期:2014-05-17 浏览次数:20463 次
<script type="text/javascript">
$(function(){
$("#aspnetForm").Validform({
datatype:{
"fen":/^-?[1-9]\d{0,4}$/
},
beforeSubmit:function(o){
var flag=true;
var TbName=$("#<%=TbName.ClientID %>").val();
var DistrictID=$("#<%=DropDistrict.ClientID %>_DropDistrict").val();
var Sort=$("#<%=DropSort.ClientID %>_DropSort").val();
$.ajax({
url: "../handler/VaApEvaStdExist.ashx",
data: "Name=" + TbName+"&DistrictID=" + DistrictID+"&Sort=" + Sort,
async: false,
cache: false,
type: "POST",
success: function(data){
if(data!="y"){
$.Showmsg(data);
flag=false;
}
}
});
return flag;
}
});
})
</script>