ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 1st, 2003, 08:25 PM
jaxx jaxx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 7 jaxx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
dynamic navigation?!?!

Hello,
I have a series of pages calles 1.asp,2.asp....100.asp.
These pages sit in a frameset with a frame at the bottom with a file called bottom.asp.
This file bottom.asp has a fwd next button.
I want next to point to the page after the page already loaded into the frameset and the back buton to go to the page before.
Have tried coding this in ASP with

the numbered page having for page 1
<%
session("pageNumber")=1
%>

and for bottom frame I have
<%
Dim vnext
Dim vback



vnext=session("pageNumber")+1 & ".asp"
vback=session("pageNumber")-1 & ".asp"
%>

and


a href for next <%vnext%>

any help wouyld be greatly appreciated!

Jax

Reply With Quote
  #2  
Old October 2nd, 2003, 07:13 PM
mohecan mohecan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 212 mohecan User rank is Private First Class (20 - 50 Reputation Level)mohecan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
try changing your href for next to be <%=vnext%>

Or (my preference) would be to send the pageNumber via the query string.
Such that your href would look something like:
Code:
<a href="<%=Request.Querystring("pagenumber")+1%>.asp?pagenumber=<%=Request.QueryString("pagenumber")+1%>">Next</a>

And when you link to 1.asp call it as 1.asp?pagenumber=1

HTH
__________________
How can I soar like an eagle when
I'm flying with turkey's?

Reply With Quote
  #3  
Old October 2nd, 2003, 09:19 PM
jaxx jaxx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 7 jaxx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your response.
I tried your code but am confused as to whether this is still calling the pageNumber session variable from the content page?

have only used qery strings with forms -
how does it work iin this case....

Also I tried the <%=vnext> method
I realised that after clicked this page neds to be refreshed to update the variable...
I tried this code which I found elsewhere...
<%
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Cache-Control", "must-revalidate"
Response.AddHeader "Cache-Control", "no-cache"
%>

but this doesnt seem to work....
any ideas for simple refresh of variable?

Ta!
J

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > dynamic navigation?!?!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway