Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 23rd, 2004, 08:08 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky
Default Refresh Data on Page

Hi

I have got 2 forms on 1 asp page. The first form has got textboxes etc with values that are populated from a sql query. The second form is populated in tabular format that give users the ability to edit a selected record (radio buttons) or add a record. This table is also populated by a sql query

If the user click edit or add a popupwindow appear that allows them to type in data if edit or add if they want to add. This asp popup submits to another asp page that will do the insert or update query.

My question is. How do I refresh the data on the second form once they have changed these values? Only once these values have changed they will save the whole record.

Any sugestions or alternative ways to acomplish this? The only other thing I can think of is a iFrame.

Regards
Marnus
 
Old July 23rd, 2004, 08:22 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

hello,

   After edit/add in Popup --> Edit --> Sql statement...

Do the client side work.

<script language="javascript">
opener.location.href="thesamefilename.asp";
window.close();
</script>

this will refresh the main page and retrieves the current values.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Refresh on first postback slim182 ASP.NET 2.0 Basics 4 February 20th, 2007 08:22 PM
How to refresh parent page amolpayal Javascript How-To 1 August 2nd, 2006 05:03 AM
Need to "Refresh" page fskilnik Dreamweaver (all versions) 3 October 20th, 2005 10:49 AM
page Refresh skicrud PHP How-To 2 August 25th, 2004 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.