473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1876

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Powell | last post by:
My first time working with a PHP class, and after 6 hours of working out the kinks I am unable to return a value from the class, so now I appeal to the general audience what on earth did I do wrong...
20
by: Jakob Bieling | last post by:
Hi! I am using VC++ 7.1 and have a question about return value optimization. Consider the following code: #include <list> #include <string> struct test {
25
by: cppaddict | last post by:
I'd like to know what goes on under the hood when methods return objects. Eg, I have a simple Point class with two members _x and _y. It's constructor, copy constructor, assignment operator and...
2
by: PengYu.UT | last post by:
I have the following sample program, which can convert function object with 1 argument into function object with 2 arguments. It can also do + between function object of the same type. The last...
2
by: Rhino | last post by:
I am trying to verify that I correctly understand something I saw in the DB2 Information Center. I am running DB2 Personal Edition V8.2.1 on Windows. I came across the following in the Info...
15
by: Greenhorn | last post by:
Hi, when a function doesn't specify a return type ,value what value is returned. In the below programme, the function sample()is returning the value passed to 'k'. sample(int); main() { int...
1
by: Jack Addington | last post by:
I have a 3rd party object that fires an itemchanged event when someone edits some data on a form. This event has a custom eventArgs that has a field called ActionCode. In the code of the event,...
12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
6
KoreyAusTex
by: KoreyAusTex | last post by:
If anyone can help me figure out the what the missing return statements are, I think it might be the fact that I need to add a return false in the getValue()? import java.util.*; public class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.