如何使用ModalPopup Extender打开附件 [英] How to open a attached file using ModalPopup Extender

查看:74
本文介绍了如何使用ModalPopup Extender打开附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在我的应用程序中,我有一个网格,显示带有链接按钮的附件。通过单击文件名链接按钮,我想向用户显示该文件,这些都正常工作。我的查询是如何在弹出窗口中显示该文件。当用户单击FileName链接按钮时,弹出窗口应该打开以显示文件内容。怎么做。







先谢谢

Hi,

In my application I have a grid which is showing the attached files with a link button. By clicking the filename link button I want to show the file to the user, these all working fine. My query is how to display the file in a popup window. When the user clicks on the FileName link button the Pop up should open to show the file content. How to do this.



Thanks in Advance

推荐答案

您可以在开始链接中输入target =_ blank,它将在新窗口中打开而不会弹出。







使用此代码 [ ^ ]将文件中的文本附加到弹出窗口。



调用jQuery。该div上的对话框() [ ^ ]已经完成。



几乎复制/粘贴工作:))
You could put target="_blank" in your opening link and it will open in new window without pop-up.



Use this code[^] to append text from the file to your popup div.

Call jQuery.dialog()[^] on that div and you're done.

Almost copy / paste job :)


这篇关于如何使用ModalPopup Extender打开附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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