如何使用jquery验证主要页面 [英] how to validate the master contant page using jquery
本文介绍了如何使用jquery验证主要页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
如何在asp.net中编写用于注册内容页面验证的jquery脚本。
没有母版页我的代码工作正常。我的脚本是这样的:
Hi all,
how to write jquery script for signup content page validation in asp.net.
with out master page my code is working fine. my script like this:
<head>
<link href="../css/style1.css" rel="stylesheet" type="text/css" />
<link href="../css/drop1.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
</head>
<body>
<form id="conform" runat="server">
<div>
</div>
</form>
// master page
//contant page
<script type="text/javascript">
$(document).ready(function () {
$('#' + '<%=btnemplogin.ClientID%>').click(function () {
return $('#' + '<%=Master.FindControl("conform").ClientID %>').validationEngine('attach');
});
});
</script>
但没有使用我的代码。
请帮帮我。
感谢和问候
but not working my code.
please help me.
thanks and regards
推荐答案
(document).ready(function(){
(document).ready(function () {
('#'+'<% = btnemplogin.ClientID %> ')。click(function(){
return
('#' + '<%=btnemplogin.ClientID%>').click(function () { return
('#'+'<% = Master.FindControl( 符合)。ClientID %> ') .validationEngine('attach');
});
});
< / script >
('#' + '<%=Master.FindControl("conform").ClientID %>').validationEngine('attach'); }); }); </script>
但没有使用我的代码。
请帮帮我。
谢谢和问候
but not working my code.
please help me.
thanks and regards
这篇关于如何使用jquery验证主要页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文