Print Page | Close Window

not underlined on current page?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=4569
Printed Date: 29 March 2026 at 3:41pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: not underlined on current page?
Posted By: Lucent
Subject: not underlined on current page?
Date Posted: 28 July 2003 at 11:14am

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>




Replies:
Posted By: ljamal
Date Posted: 28 July 2003 at 11:25am
Change
If I=iPageCurrent Then
to
If Clng(I)=Clng(iPageCurrent) Then




-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Lucent
Date Posted: 28 July 2003 at 4:05pm
Got it thank you..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net