Hi, I'm trying to modifiy this code I have. It is the page navigation at the bottom of my site. Right now it shows << 1 2 3 4 5 >> , I want it to be like << 1 2 3 4 5 >> if I'm on page 3. I tried to modify it but nothing works, can someone help me..thanks!!
--original code----------------------------------
<form method="post" action="" name="nscapeview">
<font face="<%=FFType%>" color="<%=FColor%>" size="2">
<% if iPageCount > 1 then %>
<%response.write(dictLanguage.Item(Session("language")&"_advSrcb_4") & iPageCurrent & dictLanguage.Item(Session("language")&"_advSrcb_5") & iPageCount & "<P>")%>
<%
if iPageCurrent > 1 then %>
<a href="advSearch_h.asp?iPageSize=<%=iPageSize%>&keyword=<%=tKeywords%>&iPageCurrent=<%=iPageCurrent - 1%>&priceFrom=<%=pPriceFrom%>&priceUntil=<%=pPriceUntil%>&idCategory=<%=pIdCategory%>&IdSupplier=<%=pIdSupplier%>&withStock=<%=pWithStock%>"><img src="<%=rsIconObj("previousicon")%>" border="0"></a>
<% end if
For I=1 To iPageCount
If I=iPageCurrent Then%>
<%=I%>
<% Else %>
<a href="advSearch_h.asp?iPageSize=<%=iPageSize%>&keyword=<%=tKeywords%>&iPageCurrent=<%=I%>&priceFrom=<%=pPriceFrom%>&priceUntil=<%=pPriceUntil%>&idCategory=<%=pIdCategory%>&IdSupplier=<%=pIdSupplier%>&withStock=<%=pWithStock%>"><font color="<%=Link%>"><%=I%></font></a>
<% End If %>
<% Next %>
<% if cInt(iPageCurrent) <> cInt(iPageCount) then %>
<a href="advSearch_h.asp?iPageSize=<%=iPageSize%>&keyword=<%=tKeywords%>&iPageCurrent=<%= iPageCurrent + 1%>&priceFrom=<%=pPriceFrom%>&priceUntil=<%=pPriceUntil%>&idCategory=<%=pIdCategory%>&IdSupplier=<%=pIdSupplier%>&withStock=<%=pWithStock%>"><img src="<%=rsIconObj("nexticon")%>" border="0"></a>
<% end if
end if
set conntemp=nothing
set rstemp=nothing
set pIdProduct=nothing
set pDescription=nothing
set pDetails=nothing
set pListPrice=nothing
call closeDb()
call clearLanguage()
%>
</font>
</form>
---I modifiied the red part to--------(doesn't work)
<font face="Arial, Helvetica, sans-serif" size="2"><b><%=I%></b></font>
Edited by Lucent