R
Rob Meade
Hi all,
Looking for a bit of help if possible.
For about 2 weeks now I've been investigating the best way to populate
related drop down menus, and have their values pre-populated again if the
user clicks back with their selected options still selected - and I'm
getting to the point where I might just popup a big window, perhaps with
some flash in it and say "dont be lazy, select em again you great big freak
of nature" because I am that thoroughly fed up!
I've started using Ajax, dont pretend to be an expert, but from an example
online I've managed to get my three drop down's populate upon the selected
item being changed without the page refreshing - marvellous - so imagine my
delight when I added a button to my test page in order to create a postback
to find that when I then hit back in the browser its just as if the page has
been loaded for the first time again....
*sigh*
Does anyone have any experience with doing this? I'm not looking for a
component or pre-written drop-in code - just some help with what I have
would ideal...
I'm kinda concerned that with the Ajax approach I've adopted, the form
elements might be updated with content for the user to see, but there wont
actually be anything behind it, ie, on the page, thus when its submitted
there's no viewstate (stop me if I'm sound like a complete moron at any
point please), thus I cant rely on that to then update the boxes when the
user clicks back.
I would prefer to avoid the use of a session variable to store any
selections - feels a bit dirty...
Any help would be really appreciated, I have to places in my application
where this "functionality" is required, one at the beginning, and one a page
on from the beginning, needless to say its causing me a huge time-slip on
this project....(I'd spit all the options out as hyperlinks if there were
not so many of em!)
Regards
Rob
Looking for a bit of help if possible.
For about 2 weeks now I've been investigating the best way to populate
related drop down menus, and have their values pre-populated again if the
user clicks back with their selected options still selected - and I'm
getting to the point where I might just popup a big window, perhaps with
some flash in it and say "dont be lazy, select em again you great big freak
of nature" because I am that thoroughly fed up!
I've started using Ajax, dont pretend to be an expert, but from an example
online I've managed to get my three drop down's populate upon the selected
item being changed without the page refreshing - marvellous - so imagine my
delight when I added a button to my test page in order to create a postback
to find that when I then hit back in the browser its just as if the page has
been loaded for the first time again....
*sigh*
Does anyone have any experience with doing this? I'm not looking for a
component or pre-written drop-in code - just some help with what I have
would ideal...
I'm kinda concerned that with the Ajax approach I've adopted, the form
elements might be updated with content for the user to see, but there wont
actually be anything behind it, ie, on the page, thus when its submitted
there's no viewstate (stop me if I'm sound like a complete moron at any
point please), thus I cant rely on that to then update the boxes when the
user clicks back.
I would prefer to avoid the use of a session variable to store any
selections - feels a bit dirty...
Any help would be really appreciated, I have to places in my application
where this "functionality" is required, one at the beginning, and one a page
on from the beginning, needless to say its causing me a huge time-slip on
this project....(I'd spit all the options out as hyperlinks if there were
not so many of em!)
Regards
Rob