Last post Dec 23, 2014 05:28 AM by saffy
Dec 22, 2014 02:47 AM|saffy|LINK
We have issue with image loading while using AJAX
- We are using UpdatePanel to validate the request.
On page load below code is working fine.
imgVefrification.ImageUrl = "ImageValidate.aspx";
On button click after validating the image value, if validation fails we are trying to call it again.
But image is not getting refreshed (Debug is not hit/process "ImageValidate.aspx" page)
Dec 22, 2014 09:59 PM|Edwin Guru Singh|LINK
As per your case,I have been shared my suggestion below :
1.By using "imageURL" property, have to assign an image file only
(Ex: imgVefrification.ImageUrl = "ImageValidate.jpg"; )
2. For refresh your image, have to set Postbacktrigger in the updatepanel & assign it to particular control
For your reference, the corresponding code snippet below :
<asp:UpdatePanel ID="UpdPnl" runat="server">
<asp:Image ID="img" runat="server" />
<asp:Button ID="btnRefresh" runat="server" Text="Refresh"></asp:Button>
<asp:PostBackTrigger ControlID="btnRefresh" />
If the above ideas not working in your side. please post the relevant Code snippet because its more helpful us to solve your issue.
Dec 23, 2014 05:28 AM|saffy|LINK
Thank you very much.