如何在asp.net中回发后保留图像预览 [英] How to retain image preview even after postback in asp.net

查看:80
本文介绍了如何在asp.net中回发后保留图像预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经成功实现了在实际保存图像之前显示正在上传的图像的图像预览功能,方法是阅读文章在实际上传asp.net中的图像之前显示图像预览

它就像魅力一样。但是当页面上发布回发时,预览会消失。即使在回发后还有任何解决方案来维护图像预览吗?

Hello,
I have successfully implemented the functionality of displaying image preview of the image being uploaded before actually saving the image by reading the article Show image preview before actually uploading the image in asp.net
Its works like charm. But when post back occurs on the page then the preview disappears. Is there any solution to maintain the image preview even after postback?

推荐答案

<asp:updatepanel runat="server" id="UP1" >
<content tempalte="">
<asp:fileuplaoad runat="server">
</content>
<trigger>
<asynchronouspostbacktrigger contolid="Event to submit or update buttons or as per ur need">
</asynchronouspostbacktrigger></trigger>
</asp:fileuplaoad></asp:updatepanel>


这篇关于如何在asp.net中回发后保留图像预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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