If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > carry the forms value upto 8 pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-03, 02:13
sqlboy sqlboy is offline
Registered User
 
Join Date: Mar 2003
Location: Memphis, TN, USA
Posts: 61
Red face carry the forms value upto 8 pages.

Hi there !
I need help in completing my assignment which is schdule to submit on comming tuesday. Here is discription of the problem..

I have to shows the students reports based upon the user selection. At one page.. All my class students and their contact information is generate along with checkboxes which is unique number in each case. User have the rights to check all the checkboxes or mutiple selections or single selections..

I am able to retrieve the user selection at second page where the all the reports listing are published.. like fall semester report, Trisemester report, project report and so on.. At this page, i hyperlinked the various options too other page.. Now from here my problem starts.. I am not able to think how can i retrive the user first page selections value at third page or 4 page.. Because there are few pages which contains the forms and asked more information which is going to add on user previous selections..

Please, suggest me something, How can i retrieve the values at page number 4, 5 or even higher pages ? It's a very crucial project for me..

Any suggestion and comments are most welcome.

With Thanks !

Last edited by sqlboy; 12-21-03 at 02:18.
Reply With Quote
  #2 (permalink)  
Old 12-21-03, 04:15
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
Once you have the data from the early pages, just include those values in hidden fields on the forms on the next pages. This way, the values are again passed forward.

Another way would be to assign the values to session variables, which can then be accessed from any page.

Tim
__________________
Tim
Reply With Quote
  #3 (permalink)  
Old 12-21-03, 04:46
sqlboy sqlboy is offline
Registered User
 
Join Date: Mar 2003
Location: Memphis, TN, USA
Posts: 61
Post

Great... I got suggestion so fast..

But did you think that 'Session Variables' were the good option in this case.. and secondly hiddens fields are the good options but its become double or triple or quadraple depending upon the user selection which troubles me alot..

Anyway! Thanks for the suggestions.
Reply With Quote
  #4 (permalink)  
Old 12-21-03, 17:56
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Quote:
.... and secondly hiddens fields are the good options but its become double or triple or quadraple depending upon the user selection which troubles me alot..
You can always use one field to hold your hidden data providing you format the data in that field in a suitable way (say XML for example).
Reply With Quote
  #5 (permalink)  
Old 12-22-03, 04:32
sqlboy sqlboy is offline
Registered User
 
Join Date: Mar 2003
Location: Memphis, TN, USA
Posts: 61
Thanks for the suggestion..

But i can't got you completely. Would you like to eloborate it more ?

Thanks !
Reply With Quote
  #6 (permalink)  
Old 12-22-03, 17:31
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
OKie, normally you'd have a hidden field for each value you want to pass around through the pages, but that can mean a lot of hidden fields...

so instead you have one hidden field to hold all the values, but you format the values in a manner so that you can spilt them into their individual values at any given time....

one of the ways you can format the data is as xml...

so maybe you have 4 values, username, course, and 2 report names that you need to pass around.... your xml string looks something like

Code:
<myvalues>
     <username>bob</username>
     <course>testing</course>
     <reports>
          <reportname>report1</reportname>
          <reportname>report2</reportname>
     </reports>
</myvalues>
now you hold the entire xml string in a single hidden field, pass it around and whenever you need to grab or add a value you use the xml

of course you can format the string in any manner you want and you can have as many or as few fields as you want... so you could store the username in one field, the course name in another and then all the reports names in another field as a comma delimited string.

does that help?
Reply With Quote
  #7 (permalink)  
Old 12-28-03, 05:53
sqlboy sqlboy is offline
Registered User
 
Join Date: Mar 2003
Location: Memphis, TN, USA
Posts: 61
Thanks indeed !!

Yes.. you eloborate in a very efficient manner..

Thanks !!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On