看看下面:
dim times,user_name,password
if times <= 3 then
if user_name <> wadialin then
Response.Write "用户名错误,请重新输入!"
times = times + 1
elseif password <> 123 then
Response.Write "密码错误,请重新输入!"
times = times + 1
else
Response.Write "OK,输入正确!"
end if
else
Response.Write(已经输入三次,请退出!)
end if
用循环语句也可以!!!