如何在图像点击事件中放置浏览按钮事件并在c#asp.net的此图像框中上传图像? [英] How to place Browse Button event fire on Image click event and upload image in this image box in c# asp.net?

查看:66
本文介绍了如何在图像点击事件中放置浏览按钮事件并在c#asp.net的此图像框中上传图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如何在图片点击事件中放置浏览按钮事件并在c#asp.net的此图像框中上传图像?



我不想要任何其他浏览按钮和上传按钮,我想只在图像点击事件上上传图像,在我的网站应用程序中使用c#asp.net,

所以,请帮帮我,怎么可能?



先谢谢。



Ankit Agarwal

网站开发人员

Hello,

How to place Browse Button event fire on Image click event and upload image in this image box in c# asp.net?

I don't want any other Browse button and upload button, i want to upload image on image click event only, in my web site application using c# asp.net,
So, please help me, How it can be possible?

Thanks in Advance.

Ankit Agarwal
Website Developer

推荐答案

将FileUpload添加为图像按钮内的内容并处理FileUpload事件

这个shd解析你的prblm



Add FileUpload as a content inside Image Button and handle the FileUpload event
This shd solve ur prblm

<pre lang="HTML">
              <asp:imagebutton id="ImageButton1" runat="server" >
                        <asp:fileupload id="UploadIpFile" runat="server" />
              </asp:imagebutton>


这篇关于如何在图像点击事件中放置浏览按钮事件并在c#asp.net的此图像框中上传图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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