我有很多程序都是和教材写的一样。也检查了没有什么错误,可是老不执行呢!?SOS!!!!!!!!!!
我的源程序:
<% @ page language="c#" %>
<script language="c#" runat="server">
void onselect(Object src,EventArgs e){
string smodule=module.Value;
show.Text=smodule;
}
</script>
<html>
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form runat="server">
<select id="module" runat="server" />
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
</select>
<input type=submit name="提交" OnServerClick="onselect" runat="server" >
<asp:Label id="show" Text="尚没有选择" runat="server" />
</form>
</body>
</html>
错误信息:
Server Error in '/' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested Url: /nss/select.aspx
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.40607.42; ASP.NET Version:2.0.40607.42