asp.net的环境需要装什么东西。我现在有.net framework sdk v1.1和visual studio .net 2003。
还需要什么?为什么教程上可以自动把小写字母转换成大写的,我的有些可以有些不行。例:sql自动转换成Sql还有在一个html页上提交到.aspx页时,出错:(下面)是和环境有关吗?我按着教程一步一步做的。Server Error in '/test2-1' Application.
--------------------------------------------------------------------------------Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error:
Line 19: private void Page_Load(object sender, System.EventArgs e)
Line 20: {
Line 21: string userName=Request.Form["username"].ToString();
Line 22: string userPwd=Request.Form.Get("userpwd").ToString();
Line 23:
Source File: c:\inetpub\wwwroot\test2-1\login.aspx.cs Line: 21 Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
test2_1.login.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\test2-1\login.aspx.cs:21
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
还需要什么?为什么教程上可以自动把小写字母转换成大写的,我的有些可以有些不行。例:sql自动转换成Sql还有在一个html页上提交到.aspx页时,出错:(下面)是和环境有关吗?我按着教程一步一步做的。Server Error in '/test2-1' Application.
--------------------------------------------------------------------------------Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error:
Line 19: private void Page_Load(object sender, System.EventArgs e)
Line 20: {
Line 21: string userName=Request.Form["username"].ToString();
Line 22: string userPwd=Request.Form.Get("userpwd").ToString();
Line 23:
Source File: c:\inetpub\wwwroot\test2-1\login.aspx.cs Line: 21 Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
test2_1.login.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\test2-1\login.aspx.cs:21
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
===================Request.Form中没有包含索引是["username"]的项。
我郁闷啊
test2_1.login.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\test2-1\login.aspx.cs:21第21行出错的,要学会看错误提示