updatepanel中刷新图像的问题 [英] problem with refresh image in updatepanel

查看:101
本文介绍了updatepanel中刷新图像的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在updatepanel中有一个图像按钮和图像



但是当我点击图像按钮时图像dosen''t refrresh



它在chrome中工作正常,但不能在FF,IE,Safari中工作

 <   asp:UpdatePanel     ID   =  UpdatePanel1    UpdateMode   = 条件    runat   = 服务器 >  
< contenttemplate >
< asp:Image ID = Img_Cptch runat = server / >
< asp:ImageButton ID = ImageButton1 runat < span class =code-keyword> = server CssClass = 刷新ImageButton1 AlternateText = 刷新 ImageUrl = 〜/ images / Refresh.png 宽度 = 25px 高度 = 25px OnClick = ImageButton1_Click CausesValidation = False / >
< / contenttemplate >
< 触发器 >
< asp:AsyncPostBackTrigger ControlID = LinkBut​​ton_register EventName = 点击 / >
< asp:AsyncPostBackTrigger ControlID = ImageButton1 EventName = 点击 / >
< / triggers >





请F1F1F1F1F1

解决方案

您可能想在IE / FF中尝试使用F12 Developer Toolbar - Web控制台工具来查找在渲染输出中出了什么问题。

i have a imagebutton and image in updatepanel

but image dosen''t refrresh when i click on imagebutton

it''s work fine in chrome,but don''t work in FF,IE,Safari

 <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
           <contenttemplate>
<asp:Image ID="Img_Cptch" runat="server"  />
<asp:ImageButton ID="ImageButton1" runat="server" CssClass="refresh ImageButton1" AlternateText="refresh" ImageUrl="~/images/Refresh.png" Width="25px" Height="25px" OnClick="ImageButton1_Click" CausesValidation="False" />
</contenttemplate>
           <triggers>
               <asp:AsyncPostBackTrigger ControlID="LinkButton_register" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
           </triggers>



please F1F1F1F1F1

解决方案

You might want to try F12 Developer Toolbar in IE/ FF - Web Console tools to find out what is wrong in the rendered output.


这篇关于updatepanel中刷新图像的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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