Forums
This topic is locked
problem passing values with GO TO DETAIL PAGE
Posted 30 Nov 2004 22:31:32
1
has voted
30 Nov 2004 22:31:32 alex campbell posted:
I can open my detail page with no problem, but want also to pass a couple of other variables from the previous page as well. How do I do this?My instinct tells me to hack the code generated by the GoToDteailPage behaviour to include additional querystring fields, but feel sure there must be a better way.
My application is setup so that the master page lets the user select a category, and then by clicking it, gets transferred to another page where they can scroll images within their chosen category. However, I want to also pass the text they clicked so that it can be used to form the header title (category name) of the detail page. The actual value used in the GoToDetailPage dialog is a hidden ID field that is passed and used to select the records in the recordset.
Hoping you can help
Regards, Alex
Replies
Replied 30 Nov 2004 22:49:06
30 Nov 2004 22:49:06 Simon Martin replied:
On your detail page could you not just have your recordset pick up the category name from the database?
I'm assuming the list of categories on the master page is pulled from a recordset in the first place, in which case there is a relationship between the hidden ID that's passed between the pages and the text you want to display.
Live the life you love
Love the life you live
Simon
[DWMX 2004]|[SQL]|[ASP/VBScript]|[XP-Pro]
I'm assuming the list of categories on the master page is pulled from a recordset in the first place, in which case there is a relationship between the hidden ID that's passed between the pages and the text you want to display.
Live the life you love
Love the life you live
Simon
[DWMX 2004]|[SQL]|[ASP/VBScript]|[XP-Pro]
Replied 02 Dec 2004 02:33:06
02 Dec 2004 02:33:06 alex campbell replied:
Thanks for the response, Simon.
Yes your suggestion could work, but means another call to the server. I just thought as there seemed to be mechanisms around for passing variables via post/get, I could 'piggy-back' the category name alongside the GoToDetailPage ID as a neater solution. If I hear of nothing better, I'll adopt your solution - thanks!
Regards, Alex
Yes your suggestion could work, but means another call to the server. I just thought as there seemed to be mechanisms around for passing variables via post/get, I could 'piggy-back' the category name alongside the GoToDetailPage ID as a neater solution. If I hear of nothing better, I'll adopt your solution - thanks!
Regards, Alex
Replied 04 Dec 2004 02:22:57
04 Dec 2004 02:22:57 Simon Martin replied:
Why another call to the server?
Just include the column for the text field in your existing query
Live the life you love
Love the life you live
Simon
[DWMX 2004]|[SQL]|[ASP/VBScript]|[XP-Pro]
Just include the column for the text field in your existing query
Live the life you love
Love the life you live
Simon
[DWMX 2004]|[SQL]|[ASP/VBScript]|[XP-Pro]