第一次用.net什么都不懂,谢谢大家了“/WebApplication1”应用程序中的服务器错误。
--------------------------------------------------------------------------------未将对象引用设置到对象的实例。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误: 
行 77:  //Trim the 学号 taken from the querystring
行 78: 
行 79:  str学号=Request.QueryString["学号"].Trim();
行 80: 
行 81:  if(!(9>str学号.Length && str学号.Length>1))
 源文件: c:\inetpub\wwwroot\webapplication1\addedityubaomingdangan.aspx.cs    行: 79 堆栈跟踪: 
[NullReferenceException: 未将对象引用设置到对象的实例。]
   WebApplication1.AddEdityubaomingdangan.GetyubaomingdanganDetails() in c:\inetpub\wwwroot\webapplication1\addedityubaomingdangan.aspx.cs:79
   WebApplication1.AddEdityubaomingdangan.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication1\addedityubaomingdangan.aspx.cs:58
   System.Web.UI.Control.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive()
   System.Web.UI.Page.ProcessRequestMain()代码:private bool GetyubaomingdanganDetails()
{
string str学号="";
if(Request.QueryString.Count>0)
{
//Trim the 学号 taken from the querystring

str学号=Request.QueryString["学号"].Trim(); if(!(9>str学号.Length && str学号.Length>1))
{
return false;
}
}
else
{
return false;
}