Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Asp 2.0 popupscreen return (http://www.velocityreviews.com/forums/t802865-asp-2-0-popupscreen-return.html)

Logger 03-14-2007 04:12 AM

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


Anthony Jones 03-14-2007 10:12 AM

Re: Asp 2.0 popupscreen return
 

"Logger" <Logger@discussions.microsoft.com> wrote in message
news:E8039D54-3B87-46E7-BDF5-C7CF92806676@microsoft.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




All times are GMT. The time now is 04:27 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.