环城南路地铁站:ASP.net 问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/27 23:17:25
我正在做一个网站的注册系统。但是预揽的时候我自己注册,却什么提示也没有,也就是说,我什么空也不填也没有提示消息出来,谁知道的帮偶一把,我在线等,弄好了后,追加100分给您:代码如下,自己看看,或者留下您的QQ,我们在细谈
<script language="javascript" type="text/JavaScript">
function check()
{
if(document.form2.username.value=="")
{alert("please write down the user ID");
document.form2.username.focus();
return false;
}
if(document.form2.pwd.value=="")
{alert("please write down the password");
document.form2.pwd.focus();
return false;
}
if(document.form2.spwd.value=="")
{alert("please sure the password");
document.form2.spwd.focus();
return false;
}
if(document.form1.spwd.value=document.form2.pwd.value)
{alert("2次输入的密码不同");
return false;
}
if(document.form2.email.value=="")
{alert("please sure the password");
document.form2.spwd.focus();
return false;
}
}
document.form2.ctype.value="add";
document.form2.submit();
我日哦,你们谁把QQ留给我嘛,我把全部的代码,发给你们,你们帮偶看看

if(document.form1.spwd.value!!!!!!!!!!!!=document.form2.pwd.value)
{alert("2次输入的密码不同");
return false;
}

不等于用!=

你看见我写的一堆!!!!!!!!没。

就是那地方写错了。

大哥我没主要看,我只看了个大概,你里面的</script>是没放上去还是故意不放??打的太密了,看的累,一点格式都没,就象个初学网页编程的一样

,看了4楼的提示我也觉得我很白呵呵,我也刚玩这个不久

看看你的form有没有加runat = server属性
另外,最好不要用客户端脚本去提交

一楼的不要怪楼主,这是百度的问题,所有的缩进会在发言后被删除。

什么东西哦!没有看明白的啊!

放几个验证控件就行了,不用写代码都行,哪用这么麻烦!