Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 February 6th, 2005, 10:31 PM
Authorized User
 
Join Date: Jan 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default is it a feasible approach using asp?

is it possible that i have a combobox on the asp page and when i select an option in it, this opens another form that is retrieving some product information from the database and then accepts some user input.

when i click to the submit button in the 2nd form, the 2nd form gets closed and i can retrieve those values back in the 1st form so that i can display what information user entered.

also if i click back to the same choice in the combo-box i should be able to open the 2nd form with the retained values that user had entered previously...

this is the flow i want in a nutshell:
1. Form A has a combo-box
2. i select an option in combo-box==>this opens Form B.
3. form B is 1st displaying some data(Server unix, laptop, etc from the DB and gets some user inputs. User enters values as in say the user wants 5 laptop of fmaily XXX .
4. when i click to submit button in Form B i come back to the FOrm A with the information user entered ... i want to display back in the Form A how many laptops he selected of XXX family
5. when i am back on Form A then and i click to the same option in the combo-box and i want to retrieve back that i entered quantity "5" for LAptop and for family XXX

is this feasible approan using ASP..
pls suggest and provide feedback.
 
Old February 7th, 2005, 12:23 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

  I feel that in this particular case you have to deal with a good amount of javascript coding.

   Initially you need to create the two forms and must keep the second form as invisible. When selecting the appropriate option you need to show up the From B (Can set the display style of the particular section).And when you click "submit" on Form B instead of submitting you need to hide the section. Also you have to pass the values to the earlier form using javascript.

   Hope you got some idea on how to go about. Please let me know if I can help anymore on this.

Shibu Narayanan
Software Associates
 
Old February 7th, 2005, 12:26 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Conceptually its possible only. FYI, for passing values from child window to parent you can use
Code:
window.opener.document.formname.textboxname.value = valuetobePassed;
Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old February 7th, 2005, 03:50 AM
Authorized User
 
Join Date: Jan 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok great thanks! have lead to move ahead






Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with approach rickyc1 Classic ASP Databases 4 July 14th, 2005 10:26 AM
How feasible to connect to multiple dbs in MySQL Janardhana M MySQL 2 June 7th, 2005 04:59 AM
Datasets - what is the best approach? Dave Stumbles VB Databases Basics 0 January 12th, 2005 05:21 PM
what is the common approach for it? thanks Robin1 Classic ASP Databases 6 September 11th, 2004 04:14 AM
what is the benefits for each approach alyeng2000 SQL Server 2000 6 December 31st, 2003 05:48 AM





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