numbering with asp

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 02:10:21 von Jon Paal

you could use a loop or some other technique..depends upon how the titles are being derived.

Re: numbering with asp

am 29.03.2007 10:45:59 von Michal

ive written a nice component for paging but the tutorial is
unfortunately in german .. the class is documented in english though.
here is the link http://www.grafix.at/michal/2005/05/asp-paging-leicht-gemach t.html
cheers
michal

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)