谁帮我纠正错误啊!谢谢!!!
cdsun 2002-05-10 04:15:23 一个页面程序
<%@ Page Language="VB" ContentType="text/html" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<p>血型</p>
<form method="post" runat="server">
<label>
<input id="atype" type="radio" name="blood" value="a" runat="server">
A <br>
<input id="btype" type="radio" name="blood" value="b" runat="server">
B <br>
<input id="otype" type="radio" name="blood" value="o" runat="server">
O <br>
<input id="abtype" type="radio" name="blood" value="ab" runat="server">
AB <br>
<input runat="server" type="submit" id="cmd01" value="提交" onsercerclick="cmd01_click"><br>
</form>
<p> </p>
</body>
</html>
<script language="VB" runat="server">
sub cmd01_click(sender as object,e as eventargs)
dim strresult as string
strresult="您的血型是"
if atype.checked=true then
strresult=strresult & atype.value & "型"
else if btype.checked=true then
strresult=strresult & btype.value & "型"
else if otype.checked=true then
strresult=strresult & otype.value & "型"
else if abtype.checked=true then
strresult=strresult & abtype.value & "型"
end if
message.innerhtml="<font color='red'>"& strresult & "</font><br>"
end sub
</script>
出错信息如下!!!!!!!!!!
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30451: Name 'message' is not declared.
Source Error:
Line 38: strresult=strresult & abtype.value & "型"
Line 39: end if
Line 40: message.innerhtml="<font color='red'>"& strresult & "</font><br>"
Line 41: end sub
Line 42: </script>
Source File: E:\iis50\aspnet\122.aspx Line: 40