隐藏图像并放大单击其他按钮显示对话框 [英] hiding image uplod & show dialog in click of other button

查看:61
本文介绍了隐藏图像并放大单击其他按钮显示对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<script type="text/javascript">
                    function FindAndClick() {
                        var FileUpload = document.getElementById("FileUpload1");
                        FileUpload.click();
                    }
  </script>
  <input type="button" value="Upload" onClick="FindAndClick()"/>
  <asp:FileUpload ID="FileUpload1" runat="server" Height="0px" Width="0px"/>






我正在使用此代码.
使用此代码,我可以在按钮单击中调用打开对话框,但是现在.
我如何获得被选中的图像名称.........


请帮助我....
提前thnx






i m using this code.
using this code i able to call open dialog in button click but now .
how i get image name which i am selected............


plese help me....
thnx in advance

推荐答案

亲爱的Dilip,

请使用以下javascript

Dear Dilip,

Please use the following javascript

 <script language="javascript" type="text/javascript">
// <!CDATA[
        function Browse() {
            document.form1.FileUpload1.click();           
        }      
// ]]>
    </script>




问候!
阿曼




Regards!
Aman


这篇关于隐藏图像并放大单击其他按钮显示对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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