我想将aspx页面显示为对话框 [英] I want to show aspx page as dialog box
本文介绍了我想将aspx页面显示为对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我下面的代码
this is my code below
Dim s As String = "window.showModalDialog('frm_print_rdlc_rpt.aspx?rpt_id=1 &frmt_id=2,'Popup_Window','width=300,height=300,left=100,top=100,resizale=yes');"
ClientScript.RegisterStartupScript(Me.GetType(), "Script", s, True)
但这个剧本不起作用。
请帮助我,我错了或者改变解决方案.....
谢谢
but this script is not work.
plese help me,where i am wrong or alternetive solution.....
thanks
推荐答案
首先,你有一个语法frmt_id = 2
之后缺少报价的错误!
而且showModalDialog是一种非标准方法,可能并非所有浏览器都支持和/或所有版本!
First of all, you have a syntax error of a missing quote afterfrmt_id=2
!
And also showModalDialog is a non-standard method that may not be supported in all browser and/or all versions!
您好,
试试这个秒。在aspx上使用jquery函数,并在代码中调用它。
Hi,
Try this. Use a jquery function on aspx, and call that in your code.
function ShowPopup(message) {
function ShowPopup(message) {
( function (){
这篇关于我想将aspx页面显示为对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文