473,376 Members | 1,061 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,376 software developers and data experts.

trying to get a page to close

2
Hi I was not sure where to post this as it is an asp page

basicaly i am using an asp page to send data from a flash form to MS access DB

however when the data is sent the asp page loads as a blank page is there a way for it to auto close after it sends the data

this is the asp
Expand|Select|Wrap|Line Numbers
  1. <%@language = "VBScript" %>
  2. <%
  3.  
  4. strFirst = Request.Form("fname")
  5. strLast = Request.Form("lname") 
  6. strEmail = Request.Form("email")
  7. strMessage = Request.Form("message")
  8.  
  9. MyPath=Server.MapPath("example.mdb")
  10.     Set conn = Server.CreateObject("ADODB.Connection")
  11.     conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & "DBQ=" & MyPath 
  12.  
  13. SQL = "INSERT INTO contacts (FirstName, LastName, Email, Message) VALUES ('"&strFirst&"','"&strLast&"','"&strEmail&"','"&strMessage&"')"
  14. conn.Execute(SQL)
  15. %>
  16.  
thanks mike
Apr 4 '09 #1
2 1876
mikeJS
2
I should have also mentioned on the button in flash I am using

Expand|Select|Wrap|Line Numbers
  1. [on(press){
  2.     getURL("http://localhost/contacts.asp",0,"post");
  3. }
so i am not sure if their is an alternative way of doing this so it does not open the window ?
Apr 5 '09 #2
Frinavale
9,735 Expert Mod 8TB
This is a classic ASP question.

I think the best way to do this would be to write a message saying something like "Thank you for updating the information" when the update has completed. At that point the user can choose to close the window.

Or you could write a bit of JavaScript that is generated by the ASP code and written into the page that closes the page (using the window.close() method).
Apr 6 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ed Burns | last post by:
Hi. I am trying to disable a user from going back to a previous page and displaying information previously shown. I want to give them the typical "Page has Expired" warning message. I am using Win...
19
by: Albretch | last post by:
Hi, client wants for a window with no toolbars to open (technical and 'esthetical' reasons) after the window, user clicks on, is being closed. I told them about security settings in browsers...
2
by: Gill Bates | last post by:
I'm trying to login to a banking site (https://www.providentconnection.com) using vb.net. I've tried many variations of WebClient and HttpWebRequest; none of which I've got to work. My latest...
4
by: Mark J. McGinty | last post by:
Greets, Part of the content of one of our web pages uses wingdings and Chr(239) through Chr(242) (which are little arrow outlines, though that's not really important.) It worked just fine in...
25
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
14
by: GabrielESandoval | last post by:
I need to make a registration page for a community service volleyball tournament our organization is doing. I am VERY NEW to ASP. Would the easiest way to make it be just doing it on frontpage...
3
by: Admin.TalkPC | last post by:
Hi people, I have now spent far too much time on this small problem, I am hopefully going to hand it over to you guys that are cleverer than I in this respect. Problem. I need to get all...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
3
by: gouthami | last post by:
I have a tree Node in my application and i have set the following code in the NavigateUrl property of the tree node. Please see my code below (which is present in my 'code behind' c# file). My...
24
by: jerrydigital | last post by:
Hello, I am new to this forum but have read several posts and I thank you for your great assistance. I am stumped right now. I have a user registration form in asp that is set to a form...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.