JS小问题。。
<script language= "javascript " type= "text/javascript ">
function Accredit() {
var TxtAccount = document.getElementById( " <%=Txt_Account.ClientID %> ");
var TxtPassWord = document.getElementById( " <%=Txt_PassWord.ClientID %> ");
if (TxtAccount == null || TxtPassWord == null) {
return false;
}
alert( "234 ");
if (TxtAccount.value.trim() == " ") {
alert( "授权人帐号没有输入,请输入... ");
alert( "345 ");
return false;
}
if (TxtPassWord.value.trim() == " ") {
alert( "授权人帐号没有输入,请输入... ");
return false;
}
return true;
}
</script>
<table>
<tr>
<td>
<label id= "Lab_Account " style= "width:100px "> 授权人帐号: </label>
</td>
<td>
<asp:TextBox ID= "Txt_Account " runat= "server " Width= "200px " MaxLength= "16 "> </asp:TextBox>
</td>
<td>
<label id= "Lab