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

解决方案 »

  1.   

    visual studio .net 2003 应该是包含.net框架的iis必须要装 直接按照  visual studio .net 2003 的安装提示 把系统必备装了就可以了
      

  2.   

    Request.Form["username"].ToString();
    ===================Request.Form中没有包含索引是["username"]的项。
      

  3.   

    iis装了,就是按2003的提示装的。没有包含索引是什么意思啊。按那个北大青鸟的教程写的程序啊,为什么他的能出来啊。
    我郁闷啊
      

  4.   

    在aspx页面中没找到 名为username的 客户端控件
      

  5.   

    你检查一下你提交的字段中是否存在username
      

  6.   

    [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第21行出错的,要学会看错误提示
      

  7.   

    NGWS这个是什么?我看资料好像要这个东西?我也不知道我机子上有没有。