How to collect uncertain number of people information in a form

C

c676228

Hi everyone,

I need to write a insruance program which needs to collect multiple people
information,
The information for each person includes name, email, address, phone, dob etc.
The DOB data will be used for calculate premium for each person. and then
display total premium quote to the user
I had never done that before and not sure, in asp technology what is the
easiest way to do.
Let's say the user want to enroll 30 people but I cannot display 30 grid on
one asp page, and have to display 15 grid on the first page and then next 15
on the next page. What I should do in order to store all the information
about the 30 people in the memory and insert into database at a once.
Thank you
 
C

c676228

Mckirahan,
That's the perfect start for me to think about it. Thank you so much.
Allow me to ask you one more question, what does Request.Form("") serve for?
Sincerely
 
M

McKirahan

c676228 said:
Mckirahan,
That's the perfect start for me to think about it. Thank you so much.
Allow me to ask you one more question,
what does Request.Form("") serve for?

Request.Form("") returns the contents of the form field named
within the parentheses when the form is posted.

Thus, Request.Form("test_field") returns the contents of
<input type="text" name="test_field" ...>

The form field could be a text or password item, select option(s),
checkbox, radiobutton, or textarea.

For more information, visit these links:

ASP Tutorial
http://www.w3schools.com/asp/

ASP Request Object
http://www.w3schools.com/asp/asp_ref_request.asp
 
C

ChigbuaUmuenu

I will suggest you bind your datasource to a GridView Control.
This way, u can view any page by clicking on the page number, by the bottom
of the gridview control. any updates made to the datasource is made once.
If your data is comming from a middle Tier(a user defined class), you may
choose ObjectDataSource as the datasource and bind it to the gridview.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top