从radwindow中打开的javascritp Popup Windows [英] javascritp Popup WIndows to open from within a radwindow

查看:75
本文介绍了从radwindow中打开的javascritp Popup Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我对编程非常陌生,并且真想找一个答案来解决这个问题,这似乎是一个简单的问题.
我正在尝试从radwindow中打开一个弹出窗口(Javascript window.open).

场景是这个
我有一个带有网格的页面,当我单击一个链接时,它会打开一个弧形窗口以显示所请求的信息.这些项目中有一个指向用户数据文件夹中已保存的pdf文档的链接.我想做的是打开一个弹出窗口,该窗口将下载并显示pdf文件.我的问题是我在搜寻中找到了针对该问题的解决方案,但找不到.我在互联网上发现了很多javascript函数的示例,但似乎都没有用.我可能在头顶上,但我真的被困在这里.有人可以帮忙吗?哦,最后我想从asp.net c#中的代码后面做到这一点.

预先感谢大家的帮助.

Hello all

I am very new to programming and am having a hell of a time finding an answer to this what might seem to be a simple question.
I am trying to open a popup window (Javascript window.open) from within a radwindow.

Scenario is this
I have page that has a grid to which when I click a link it opens a radwindow to display the information requested. Among the items is a link to a saved pdf document within the users data folder. What I am trying to do is open a popup window that will download and display the pdf file. My problem is I have search high and low for a solution for this issue but cannot find one. I have found many example of javascript functions on the internet but none seem to work. I may be in over my head but I al really stuck here. Can someone help? Oh lastly I am trying to do this from code behind in asp.net c#.

Thanks you all in advance for your help.

推荐答案

如果要从链接获取pdf文档,只需使用链接的href属性作为pdf文件的地址即可.例如,您有一个标签,显示的是pdf文件名,请在您的数据加载功能上写以下代码

if you want pdf document from a link simply use href property of link as address to pdf file. for example you have a label you are showing the pdf file name, write the below code on your dataloading function

lblFile.Text=string.Format("<a href="{0}" target="_blank" title="{1}">{1}</a>",pdffilepath, fileName);



如有任何查询,请告诉我.

--Pankaj



in case of any query plz let me know.

--Pankaj


这篇关于从radwindow中打开的javascritp Popup Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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