从PopUp中检索值 [英] Retrieve a value from a PopUp

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

问题描述

Hello all

我打开一个接收两个变量(值)的PopUp。这个PopUp也必须返回

a值。

如何检索这个值?


非常感谢。

Hello all
I open a PopUp that receives two variables (values). This PopUp must return
a value as well.
How can I retrieve this value?

Thanks a lot.

推荐答案

如何打开它并将值传递给它?


-

Eliyahu Goldin,

软件开发人员&顾问

Microsoft MVP [ASP.NET]

" Patricio" < Pa ************ @ latinamil.comwrote in message

news:Oq ************** @ TK2MSFTNGP05.phx .gbl ...
How do you open it and do you pass the values to it?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Patricio" <Pa************@latinamil.comwrote in message
news:Oq**************@TK2MSFTNGP05.phx.gbl...

Hello all

我打开一个接收两个变量(值)的PopUp。这个PopUp必须

也会返回一个值。

如何检索这个值?


非常感谢。
Hello all
I open a PopUp that receives two variables (values). This PopUp must
return a value as well.
How can I retrieve this value?

Thanks a lot.



您好


Dim CustomID As String = TB_ID.Text


Dim variable1 As String = TB_SearchBenef.Text


Dim str1 As String ="< script

language ="" javascript" "> windowname = window.open("" C ustomer_history.aspx?CustomID1 ="

& CustomID&"& Flag_aux ="& Flag1&" ;& Variable1 ="& variable1&

""","" _new"","" height = 500,width ="& Ancho&

",top = 50,left = 100,status = no,toolbar = no,menubar = no,location = no,scrollbars = yes,resizable = no""); < / script>"


Page.ClientScript.RegisterStartupScript(Me.GetType()," History_script",

str1)
< br $>
谢谢


" Eliyahu Goldin" < RE ************************** @ mMvVpPsS.org写在

消息新闻:%2 *** ************ @ TK2MSFTNGP02.phx.gbl ...
Hi

Dim CustomID As String = TB_ID.Text

Dim variable1 As String = TB_SearchBenef.Text

Dim str1 As String = "<script
language=""javascript"">windowname=window.open(""C ustomer_history.aspx?CustomID1="
& CustomID & "&Flag_aux=" & Flag1 & "&Variable1=" & variable1 &
""",""_new"",""height=500,width=" & Ancho &
",top=50,left=100,status=no,toolbar=no,menubar=no, location=no,scrollbars=yes,resizable=no"");</script>"

Page.ClientScript.RegisterStartupScript(Me.GetType (), "History_script",
str1)

Thanks

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2***************@TK2MSFTNGP02.phx.gbl...

如何打开它并将值传递给它?


-

Eliyahu Goldin,

软件开发人员&顾问

Microsoft MVP [ASP.NET]


" Patricio" < Pa ************ @ latinamil.comwrote in message

news:Oq ************** @ TK2MSFTNGP05.phx .gbl ...
How do you open it and do you pass the values to it?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Patricio" <Pa************@latinamil.comwrote in message
news:Oq**************@TK2MSFTNGP05.phx.gbl...

> Hello all
我打开一个接收两个变量(值)的PopUp。这个PopUp也必须返回一个值。
如何检索这个值?

非常感谢。
>Hello all
I open a PopUp that receives two variables (values). This PopUp must
return a value as well.
How can I retrieve this value?

Thanks a lot.







Patricio写道:
Hi,

Patricio wrote:




Dim CustomID As String = TB_ID.Text


Dim variable1 As String = TB_SearchBenef.Text


Dim str1 As String ="< script

language ="" javascript""> windowname = window.open("" C ustomer_history.aspx?CustomID1 =

& CustomID&"& Flag_aux ="& Flag1&"& Variable1 ="& variable1&

" ;"","" _new"","" height = 500,width ="& Ancho&

",top = 50,left = 100 ,status = no,toolbar = no,menubar = no,location = no,scrollbars = yes,resizable = no"");< / script>"


。 ClientScript.Regi sterStartupScript(Me.GetType()," History_script",

str1)
Hi

Dim CustomID As String = TB_ID.Text

Dim variable1 As String = TB_SearchBenef.Text

Dim str1 As String = "<script
language=""javascript"">windowname=window.open(""C ustomer_history.aspx?CustomID1="
& CustomID & "&Flag_aux=" & Flag1 & "&Variable1=" & variable1 &
""",""_new"",""height=500,width=" & Ancho &
",top=50,left=100,status=no,toolbar=no,menubar=no, location=no,scrollbars=yes,resizable=no"");</script>"

Page.ClientScript.RegisterStartupScript(Me.GetType (), "History_script",
str1)



一种可能性是使用JavaScript开启者窗口中的属性

对象调用方法。


示例(在弹出窗口中):


if (self.opener

&& self.opener.setValues)

{

self.opener.setValues(value1,value2);

}


HTH,

Laurent

-

Laurent Bugnion,GalaSoft

软件工程: http://www.galasoft -LB.ch

私人/马来西亚: http: //mypage.bluewin.ch/lbugnion

支持加尔各答的儿童: http://www.calcutta-espoir.ch

One possibility is to use the JavaScript "opener" property in the Window
object to call a method.

Example (in the popup):

if ( self.opener
&& self.opener.setValues )
{
self.opener.setValues( value1, value2 );
}

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch


这篇关于从PopUp中检索值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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