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

How can I make a text field = a field on a previous part of a multi part form

I know that this is easy for those that know but alas this is not me ;)

I have a multi part form that is going to write to a dB.

As a point of reference I can offer geico.com (i.e., the quote process) as a model for my project.

I need to write a record on the first page and then use the auto number generated from this to populate the child records with the parent's key field.

What I was hoping to do is write the record and then send the data from the dB to the second form. Iwill then need to repeat this process for the children of the child

Please advise...and take it easy on me. I am only moderately familiar with ASP.net

one thing to add is that i am not forcing the user to create an account in order to maje the initial inquiry, only if they wish to reaccess theinformation at a later date (again very similar to Geico.com
Mar 1 '10 #1
7 1502
semomaniz
210 Expert 100+
Why don't you used Wizard tool and do every thing at once.
Mar 1 '10 #2
Thanks for the suggestion. I will investigate it further. Could you explain a littel more as to how this will solve my need to put the parent ID field into the child table?

Thank you in advance
Mar 1 '10 #3
semomaniz
210 Expert 100+
with wizard tool you donot need to create child forms. Then once the user inputs all the data you can insert the data to the database. Regarding getting the parent id you can use stored procedure to do the entire work at once or just break down the sequence of insert .
Mar 1 '10 #4
Is there a way to set the value of a field in a future step based on a retunred database field that was created on step one?
Mar 1 '10 #5
semomaniz
210 Expert 100+
All you have to do is retrieve the value from the database and use it or assign it to a hidden field for further processing
Mar 1 '10 #6
I have a potential problem. How can I get the ID field for this user and only this user when they have not logged in. Is there something unique to this transaction that I can put into the parent record? Without this I am not sure how I could get the correct parent ID field out of the dB
Mar 1 '10 #7
Frinavale
9,735 Expert Mod 8TB
By the sounds of it, you don't need to write anything to the database until you're finished the process. You can pass data between pages by storing it in Session, using cookies etc.

If you decide to use the Wizard Web Server Control the you won't even have to pass information between pages...it'll all be on one page and you can store the information in ViewState if you want to.

You'll want to update the database once the user has finished the process...it doesn't make sense to update it before the user has finished the process.

-Frinny
Mar 3 '10 #8

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

Similar topics

1
by: Newbie | last post by:
OK, this may be impossible since I'm using 3rd party shopping cart ASP software, but I've been able to finagle a lot of other stuff I thought wouldn't work, so here we go: I'm using a form in...
14
by: jlemay | last post by:
if you look at http://www.emrose.net/contact1.html the last field is a textarea field and I can't make it align with the other text fields. it's pretty close, but this comes from trial and...
6
by: Shyguy | last post by:
I want to create two buttons on a form. One would allow the user to Copy the contents of the current records memo field, the other would allow them to print. I set up a report based on the memo...
3
by: James | last post by:
Hi, I have a combo box(cmboParts) and the row source is a part name. Once a part is selected I have button(cmdOrderAdd) to add data about this part to a sub-form(frmParts_Ordered). However this...
20
by: Prakash | last post by:
Hi ! I have a field "sub_tran_no" in my form in continuous view. When the user presses a button "Re-Number", I'd like to: 1) Save the current record pointer position 2) Save the current...
13
by: sonald | last post by:
Hi, Can anybody tell me how to change the text delimiter in FastCSV Parser ? By default the text delimiter is double quotes(") I want to change it to anything else... say a pipe (|).. can anyone...
13
by: abcdefghijklmnop | last post by:
I have a "Questions" form that reads off of a table and contains a multi-value field called "Keywords". I already know that having a multi-value field is a horrible idea, however, I am patching up a...
1
by: JosAH | last post by:
Greetings, Introduction This week we start building Query objects. A query can retrieve portions of text from a Library. I don't want users to build queries by themselves, because users make...
0
by: JosAH | last post by:
Greetings, welcome back; above we discussed the peripherals of the Library class: loading and saving such an instantiation of it, the BookMark interface and then some. This part of the article...
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
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: 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
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...
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...

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.