numbering with asp
am 28.03.2007 15:37:25 von panda_asp
i need some one to help me how to do numbering with asp.
for example if i want to display 10 titles in a page and the others
shown on the next pages.i.e 1.2.3.4.5 etc.
thanks for quick response.
--
panda_asp
------------------------------------------------------------ ------------
Posted via http://www.codecomments.com
------------------------------------------------------------ ------------
Re: numbering with asp
am 29.03.2007 11:07:35 von exjxw.hannivoort
panda_asp wrote on 28 mrt 2007 in
microsoft.public.inetserver.asp.general:
> i need some one to help me how to do numbering with asp.
> for example if i want to display 10 titles in a page and the others
> shown on the next pages.i.e 1.2.3.4.5 etc.
<% ' vbscript
dim n
n = 1 ' on each page you should hard wire the starting count
%>
<%
response.write n & ":
"
n = n + 1
%>
Blah blah.
Blah blah.
Blah blah.
<%
response.write n & ":
"
n = n + 1
%>
Blah blah.
Blah blah.
Blah blah.
<%
response.write n & ":
"
n = n + 1
%>
Blah blah.
Blah blah.
Blah blah.
==============================
<%@ LANGUAGE = JScript %>
<% // jscript
var n = 1; // on each page you should hard wire the starting count
%>
<% = n++ + ':
'; %>
Blah blah.
Blah blah.
Blah blah.
<% = n++ + ':
'; %>
Blah blah.
Blah blah.
Blah blah.
<% = n++ + ':
'; %>
Blah blah.
Blah blah.
Blah blah.
> thanks for quick response.
Why quick? On usenet requesting haste is often felt not done.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)