| |

VerySource

 Forgot password?
 Register
Search
View: 658|Reply: 2

How to get the value of showModalDialog popup form

[Copy link]

7

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 Invalid IP Address

Post time: 2020-3-17 00:00:01
| Show all posts |Read mode
I use window.showModalDialog ("./ 1.aspx");
1.aspx has a text box and a button
After making the button click, return to the parent screen p.aspx and pass the value?
And the screen finally closes
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-9 00:15:01
| Show all posts
Dim scriptString As String'JavaScript
        Dim mPathofSubWindow As String

        mPathofSubWindow = "Calendar.aspx"

        'JavaScriptで别ウィンドウが开く
        scriptString = "<script language=JavaScript>"&_
            "var postFlag = window.showModalDialog('"&mPathofSubWindow&"?date="&Date.Now&"',"&_
            "window,'dialogWidth:226px;dialogHeight:275px;help:no;resizable:No;status:No;scroll:off;"&_
            "dialogLeft:10px;dialogTop:10px'); if(postFlag != undefined){ if(postFlag[0] =='T'){window.document.forms[0].submit();}}"&_
            "eval(window.document.all."&Me.tbDate.ClientID&").focus();"&_
            "</script>"

        If (Not Page.IsStartupScriptRegistered("Calendar_clientScript")) Then
            Page.RegisterStartupScript("Calendar_clientScript", scriptString)
        End If
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-8-25 11:30:01
| Show all posts
use? Pass parameters
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list