为什么我删掉就出错误呢?新手问题本来是做ASP的现在来搞.NET
<asp:imagebutton id="AdvancedSearch_T" Runat="server" ImageUrl="/images/index/index_supserach_button.gif" AlternateText="aa"></asp:imagebutton>这是一个 调用页的部分代码! 是一个图片按钮带一个联接!为什么我 删掉它就出现下面的错误提示!
我想把这个图片按钮改成文字的! 如
<a href="111.aspx">搜索</a> 也可以用这里面的连接 但是不懂哦!我是以前做ASP的但是 公司让我改.net真晕啦!看不懂,改了部分 这点难住了我!
先谢谢大家了!
下面错误:
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Project.Include.SearchEasy.InitializeComponent() +96
Project.Include.SearchEasy.OnInit(EventArgs e) +27
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Project.Include.SearchEasy.InitializeComponent() +96
Project.Include.SearchEasy.OnInit(EventArgs e) +27
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692