[求教]asp.net中的javascript验证问题
asp.net中已经有比较好的验证控件,但总觉得前台生成代码太多,最近想深入学习一下javascript,于是遇到以下问题:
先贴代码:
。。。
<form id= "form1 " runat= "server ">
<td> 姓 名: <asp:TextBox ID= "TxtUserName " runat= "server " onblur= "checkNull(this, 'cc '); "> </asp:TextBox> <label id= "cc "> </label>
</td>
<td> Q Q 号: <asp:TextBox ID= "TxtQq " runat= "server "> </asp:TextBox>
</td>
</tr>
<tr>
<td> 邮 箱: <asp:TextBox ID= "TxtMail " runat= "server "> </asp:TextBox>
</td>
<td> 验证码: <asp:TextBox ID= "TxtCheckCode " runat= "server " MaxLength= "10 "> </asp:TextBox>
</td>
</tr>
<tr>
<td colspan= "2 ">
<div id= "addText ">
内 容:
</div>
<asp:TextBox ID= "TxtContent " runat= "server " Rows= "6 "
TextMode= "MultiLine " Width= "500px " onfocus= "displayEditSytle(); "> </asp:TextBox>