RushiShroff
Programmer
When I page records in ASP,below all links are coming
as 1 2 3 ..
Now I want to disable the current page link.Say page 1 is default so I dont want a link over that.Sameway if I select link 2,there shouldn't be a link.
This code is not working fine.
<%
for i=1 to rstSearchResults.PageCount
if i=currentPage then
%>
<%=i%>
<%else%>
<a href="Search_Results.asp?currentPage=<%=i%>&S_Category=<%=mCategory%>&T_searchfor=<%=StrForPag%>"><%=i%></a>
<%end if%>
<%
next
%>
as 1 2 3 ..
Now I want to disable the current page link.Say page 1 is default so I dont want a link over that.Sameway if I select link 2,there shouldn't be a link.
This code is not working fine.
<%
for i=1 to rstSearchResults.PageCount
if i=currentPage then
%>
<%=i%>
<%else%>
<a href="Search_Results.asp?currentPage=<%=i%>&S_Category=<%=mCategory%>&T_searchfor=<%=StrForPag%>"><%=i%></a>
<%end if%>
<%
next
%>