| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1054 人关注过本帖
标题:为什么我删掉就出错误呢?新手问题本来是做ASP的现在来搞.NET
只看楼主 加入收藏
d778
Rank: 1
等 级:新手上路
帖 子:257
专家分:0
注 册:2006-1-10
收藏
 问题点数:0 回复次数:5 
为什么我删掉就出错误呢?新手问题本来是做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

 
搜索更多相关主题的帖子: NET ASP 删掉 
2007-12-17 11:49
huwei1024
Rank: 1
等 级:禁止发言
帖 子:149
专家分:0
注 册:2007-4-12
收藏
得分:0 
提示: 作者被禁止或删除 内容自动屏蔽

www.
2007-12-17 12:07
d778
Rank: 1
等 级:新手上路
帖 子:257
专家分:0
注 册:2006-1-10
收藏
得分:0 
什么意思?
就是因为我不懂 我不会 我才来问!
不懂就问 很正常!
为什么你这个态度呢?
谁都一步一步来的

[[italic] 本帖最后由 d778 于 2007-12-17 12:12 编辑 [/italic]]

2007-12-17 12:08
冰彩虹
Rank: 4
来 自:上海
等 级:贵宾
威 望:14
帖 子:806
专家分:44
注 册:2007-6-28
收藏
得分:0 
没听明白...

Flying without wings
2007-12-17 22:12
yms123
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
楼主用的是.NET2003还是2005这个错误提示说发生System.NullReferenceException
空引用错误,也就是未将对象的引用设指导对象的实例错误。一般这种错误是声明了一个变量或对象,而没有实例化创建这个对象或初始化变量就要使用这个对象或变量,造成System.NullReferenceException
错误。
2007-12-19 16:17
菜鳥弎魛
Rank: 1
等 级:新手上路
帖 子:30
专家分:0
注 册:2007-10-24
收藏
得分:0 
可能是你调用问题
你看看你后台代码有没有调用这个IMGBUTTON,这种错误只有在对象未实例的情况下会报。

個人主頁: www.zw. email: zw_@ QQ:379868872
2007-12-19 17:24
快速回复:为什么我删掉就出错误呢?新手问题本来是做ASP的现在来搞.NET
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014395 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved