472,126 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

Asp 2.0 popupscreen return

Looking for help, I need to know how to return from a popup screen with
either postback or callback. In my popup screen I have input controls with a
save and cancel button at the end. If they click the save button I store the
data in session variables because I have to wait for the user to click the
finish button on the main screen to create database records. If they click
the cancel button I want to return and continue filling out the main screen
until they click the finish button. Any ideas!!

mainscreen.aspx code:

Protected Sub lnkbtnStatements_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lnkbtnStatements.Click
Dim winName As String
winName = " 'myWinStatement' "

Dim strScript As String = "<script language='javascript'>"
strScript += "window.open('SetupStatements.aspx', " & winName & _
",'height=375, width=625, menubar=no,resizable=no,
toolbar=no,status=no');"
strScript += "</scr" & "ipt>"

If (Not Me.ClientScript.IsStartupScriptRegistered("PopupSc ript")) Then
Me.ClientScript.RegisterClientScriptBlock(Me.GetTy pe(),
"PopupScript", strScript)
End If
End Sub

Mar 14 '07 #1
1 1852

"Logger" <Lo****@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
Looking for help, I need to know how to return from a popup screen with
either postback or callback. In my popup screen I have input controls
with a
save and cancel button at the end. If they click the save button I store
the
data in session variables because I have to wait for the user to click the
finish button on the main screen to create database records. If they
click
the cancel button I want to return and continue filling out the main
screen
until they click the finish button. Any ideas!!

mainscreen.aspx code:

Protected Sub lnkbtnStatements_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lnkbtnStatements.Click
Dim winName As String
winName = " 'myWinStatement' "

Dim strScript As String = "<script language='javascript'>"
strScript += "window.open('SetupStatements.aspx', " & winName & _
",'height=375, width=625, menubar=no,resizable=no,
toolbar=no,status=no');"
strScript += "</scr" & "ipt>"

If (Not Me.ClientScript.IsStartupScriptRegistered("PopupSc ript"))
Then
Me.ClientScript.RegisterClientScriptBlock(Me.GetTy pe(),
"PopupScript", strScript)
End If
End Sub
Re-post Q to microsoft.public.dotnet.framework.aspnet; this NG is for ASP
classic. IOW ASP not ASP.NET
Mar 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Phil Powell | last post: by
25 posts views Thread by cppaddict | last post: by
2 posts views Thread by Rhino | last post: by
1 post views Thread by Jack Addington | last post: by
KoreyAusTex
6 posts views Thread by KoreyAusTex | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.