[求助]HTML服务控件和WEB服务控件有什么区别?
例如,HTML服务控件和WEB服务控件中都有表单的控件,他们之间都有什么区别啊?比如这个程序
<html>
<script language="vb" runat="server">
sub ok_click(sender as object,e as eventargs)
dim i as integer
if password.value="" or name.text="" then
message.text="错误,请出入ID以及密码"
else
if name.text="xiao" then
if len(password.value)=4 then
for i=1 to 4
if asc(mid(password.value,i,1))<>asc(i) then
message.text="error!"
exit sub
end if
next
else
message.text="error"
exit sub
end if
response.redirect("show.aspx?name="&name.text)
end if
end if
end sub
</script>
<body>
<form runat=server>
输入ID:<asp:Textbox id="name" runat=server/>
<p>输入密码:<input id="password" type=password size=10 runat=server>
<asp:button text="ok" onclick="ok_click" runat=server/></p>
<asp:Label id="message" forecolor="red" font-bold="true" runat="server"/>
</form>
</body>
</html>
中间的:<input id="password" type=password size=10 runat=server>就不能用<asp:textbox id="password" runat="server" textmode="password" cssclass="textbox"/>
来代替
编译的时候出错了,问这个是为什么?出错的地方是password.value