呈现控件时出错 [英] there was an error rendering the control

查看:123
本文介绍了呈现控件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我在GridView的ItemTemplate中使用ImageURL时,我正在得到
错误呈现控件时出错".

我看不到GridView设计.在代码示例下面.

Hi,

When i use ImageURL in the ItemTemplate in the GridView, I am getting
Error "there was an error rendering the control".

I am not able to see GridView Design. Below the code sample.

<itemtemplate>
   <asp:HyperLink ID="HyperLink2" runat="server" onclick="" ImageUrl="images/Access.gif" >                        
</itemtemplate>



请帮助解决此问题.

谢谢.

Ganesh.S



Pls. Help to resolve this.

Thanks.

Ganesh.S

推荐答案

尝试更改
<asp:HyperLink ID="HyperLink2" runat="server" onclick="" ImageUrl="images/Access.gif" >


<asp:HyperLink ID="HyperLink2" runat="server" onclick="" ImageUrl="~/images/Access.gif" >


这篇关于呈现控件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆