472,353 Members | 1,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

numbering with 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
------------------------------------------------------------------------

Mar 29 '07 #1
3 1189


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

Mar 29 '07 #2
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/...t-gemacht.html
cheers
michal

Mar 29 '07 #3
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 & ": <br>"
n = n + 1
%>
Blah blah.<br>
Blah blah.<br>
Blah blah.<br>
<%
response.write n & ": <br>"
n = n + 1
%>
Blah blah.<br>
Blah blah.<br>
Blah blah.<br>
<%
response.write n & ": <br>"
n = n + 1
%>
Blah blah.<br>
Blah blah.<br>
Blah blah.<br>
==============================

<%@ LANGUAGE = JScript %>
<% // jscript
var n = 1; // on each page you should hard wire the starting count
%>

<% = n++ + ': <br>'; %>
Blah blah.<br>
Blah blah.<br>
Blah blah.<br>
<% = n++ + ': <br>'; %>
Blah blah.<br>
Blah blah.<br>
Blah blah.<br>
<% = n++ + ': <br>'; %>
Blah blah.<br>
Blah blah.<br>
Blah blah.<br>
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)
Mar 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Ramsden | last post by:
I maintain various specs and FAQs in manually edited HTML documents, and I'd very much like some simple way of automatic section numbering as in...
2
by: Andy Glew | last post by:
I have long looked for (and occasionally posted questions to groups such as this about) a tool that can take a group of HTML pages (nowadays...
6
by: Stanimir Stamenkov | last post by:
So if the 'type' attribute of the OL element is deprecated and authors should rely only on stylesheets how one could use a reference (as clear...
6
by: Christian Roth | last post by:
Hello, how do I offset the numbering of a list in XHTML Strict (+CSS) in current browsers? What I want is something like: 5. Item a 6....
5
by: Charles McCaffery | last post by:
I have written a database with auto-numbering and now wish to remove alkl of my test data and set the auto-numbering back to one. How do I do this...
1
by: Wayne Aprato | last post by:
I have a report that shows the results of a query. One of the fields is an autonumber field from the query which shows for instance: 120, 121 , 122...
2
by: Wayne Aprato | last post by:
I posted this yesterday and it seems like a moderator has thrown it in another thread. This is a totally different question to the one asked in...
3
by: Jim Bancroft | last post by:
Hi all, In VB6 I used a 3rd party tool for line numbering my source code, to help with debugging. However, in experimenting with VB .Net I've...
54
by: MLH | last post by:
I use A97 and do not always insert line numbers while writing procedures. I find it necessary to go back and add them later to aid in debugging. ...
0
by: [david] | last post by:
http://pyserial.sourceforge.net/ "port numbering starts at zero, no need to know the port name in the user program" But the implementation...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.