|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > dynamic navigation?!?! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|