--------------------------------------------------------------------------------未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
行 58: {
行 59: //Response.Redirect("http://www.google.com/intl/zh-CN?Sort="+Select1.Value.Trim()+"&SearchTitle="+Text1.Value.Trim());
行 60: Response.Redirect("News.aspx?Sort="+Select1.Value.Trim()+"&SearchTitle="+Text1.Value.Trim());
行 61: }
行 62: }
源文件: c:\inetpub\wwwroot\webapptest\google.aspx.cs 行: 60 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
WebAppTest.google.ButtonSearch_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapptest\google.aspx.cs:60
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
请问大家这个是为什么啊?
先谢过了。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
行 58: {
行 59: //Response.Redirect("http://www.google.com/intl/zh-CN?Sort="+Select1.Value.Trim()+"&SearchTitle="+Text1.Value.Trim());
行 60: Response.Redirect("News.aspx?Sort="+Select1.Value.Trim()+"&SearchTitle="+Text1.Value.Trim());
行 61: }
行 62: }
源文件: c:\inetpub\wwwroot\webapptest\google.aspx.cs 行: 60 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
WebAppTest.google.ButtonSearch_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapptest\google.aspx.cs:60
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
请问大家这个是为什么啊?
先谢过了。
解决方案 »
- Ajax控件没法拖动到设计页面
- jquery ajax post 传参字符长了没反应
- 为什么ValidationSummary不能显示CompareValidator的错误信息
- 请大家帮忙看一下!为什么LinkButton按钮下的事件不执行
- 急~~水晶报表使用推模式,SetDataSource后还是无数据
- 怎么把打开的页面通过邮件形式进行发送
- 奇怪問題?
- 如何判断客户端是否有安装Alexa工具条呢?
- 高手救命!!js动态插入文本框,请问怎样在.cs中取到文本框的值?
- js 父子窗体 多参数传递
- 怪事:同样是:ItemDataBound方法,在dataGrid和dataList中不同!
- 做这类网站需要多少钱??
http://community.csdn.net/Expert/topic/4246/4246090.xml?temp=8.927554E-02