菜鸟求助!!!! (初学者!!!) 代码有错,请高手帮忙修改一下!!!
<html><form id=form1 runat=server>
请输入您的出生年月日:<asp:textbox id=txtage runat=server/>
<asp:rangevalidator id=check1 runat="server" controltovalidate="txtage"
maximumvalue="70" minimumvalue="1" type=integer errormessage="必须在1-70/"> <br>
<asp:button id=button1 text=确定 onclick=bt_click runat=server/>
<asp:label id=lab runat=server/>
</form>
<script language="vb" runat="server">
sub bt_click(sender as object,e as eventargs)
dim str as integer
if str<70 then
lab.text="您迈进入老年人呢!!!"
else str<65 then
lab.text="您迈进中年人呢!!!!"
else str<45 then
lab.text="您迈进中年人呢!!"
else str<29 then
lab.text="您迈进青少年人呢!!"
else str<12 then
lab.text="您还是小孩呢!!"
else str<2 then
lab.text="您还是婴儿呢!!"
else
lab.text="还未出生呢!!!"
end if
end sub
</script>
</html>