navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Variables and search pages

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Variables and search pages
Page: [1]
 
mseal1

 

Posts: 75
Joined: 1/4/2002
From:
Status: offline

 
Variables and search pages - 5/24/2002 9:11:15   
Hi,
I have a nagging problem…
I have a search screen that uses a DRW. As part of the application, I need to have a variable (hidden or displayed) from a previous ASP form. The value shows up fine in the first search of the dB, however, if there are more pages to display (scrolling), the next pages loss the displayed variable.
How do I keep displaying the variable (coming form another dB) while I page the search results?

Thanks
Motty
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Variables and search pages - 5/24/2002 20:45:10   
Each page would need to pull the variable.
If you are using URL's, youll need to amend it to the end of the querystring, or if using a form, add a hidden field.

How do you pass the info from page2 of the search to page 3?

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to mseal1)
mseal1

 

Posts: 75
Joined: 1/4/2002
From:
Status: offline

 
RE: Variables and search pages - 5/26/2002 14:35:45   
Hi Spooky,
I have tried both ways. In the first, I’m passing a hyperlink from form A to B, and using it to access a DRW so I’m current on the record. In the other, I use a hidden field.
In both, the B screen at first displays the variable, but if I need to page (FP paging), I loss the variables value. Do I need to hide the variable in the search form on the B page?

Thanks
Motty

(in reply to mseal1)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Variables and search pages - 5/27/2002 21:52:37   
Yes, the variable would neeb to be included in whatever POST or GET action you perform.
The value of the hidden field or url will always be <%=Request("YourValue")%> with a named form element of "YourValue"

For instance, if you have a url link :

page.asp?ID=<%=fP_rs("value")%>

This would become :

page.asp?ID=<%=fP_rs("value")%>&Yourvalue=<%=Request("YourValue")%>


§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to mseal1)
mseal1

 

Posts: 75
Joined: 1/4/2002
From:
Status: offline

 
RE: Variables and search pages - 6/17/2002 13:14:05   
Hi again…
When I have a DRW with the search field/form at the top of the asp page and the search results at the bottom of the same page, and I set the results to page every 10 or 15 hits, how can I add the hidden values so that when I page I retain them?
I can add the values to the DRW region, but once I page I loose the values.

Thanks
Motty

(in reply to mseal1)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Variables and search pages
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts