Subject: Passing Variables
Posted By: CMOS Post Date: 1/20/2006 3:28:15 PM
Hoping some kind soul can help me out.

I have a page where a user inputs data into a form(Page 1).  The data is then processed(in this case it's compared against a database for a match).  If it matches, the user can choose to update/edit that record or enter different data(Page 2).  The problem lies when I choose to edit that record(Page 3 should show the updated changes).  I am unable to pass a certain variable from the starting page through... to the 3rd page.  

I don't want to use QueryString so I am using hidden forms.  I pass the variables from page 1 to page 2 successfully(Again, this is nothing more than the user filling out forms).  But when I put the variable into a hidden form, it truncates the words.  For example, if the variable was "Empty Set" it only passed "Empty."  Since all data passed with this one variable will be 2 words, how can I get it to pass both words?  

Thanks.

Reply By: lucian Reply Date: 1/22/2006 12:17:51 PM
first you could try to use session("your_session") which will be automatically passed over to the next page.

if it's a string use server.HTMLEncode("your_string")

Reply By: mat41 Reply Date: 1/22/2006 6:38:31 PM
I always consider sessions as a last resort and you certainly dont need to encode the value if its being posted via a form.

When you view the source (the html being rendered not the asp source) in page 2 is this the point where its truncated?  Try using '"  "' around your ASP when assigning a value to the hidden field.

Wind is your friend
Matt

Go to topic 39036

Return to index page 388
Return to index page 387
Return to index page 386
Return to index page 385
Return to index page 384
Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379