<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments for Moazam's Blog</title>
	<link>http://www.moazam.com</link>
	<description>One step to a new evolution</description>
	<pubDate>Thu, 28 Aug 2008 22:51:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>Comment on ASP: Digg Style Pagination Script by Monie</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-510</link>
		<dc:creator>Monie</dc:creator>
		<pubDate>Tue, 19 Aug 2008 11:36:55 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-510</guid>
		<description>Ahh... thanks man for the great example! Well perhaps you could do the same tutorian with JQuery? That would be lovely!
Thanks...</description>
		<content:encoded><![CDATA[<p>Ahh&#8230; thanks man for the great example! Well perhaps you could do the same tutorian with JQuery? That would be lovely!<br />
Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by Monie</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-507</link>
		<dc:creator>Monie</dc:creator>
		<pubDate>Thu, 07 Aug 2008 10:15:52 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-507</guid>
		<description>Hey mate!
Can we have a more detail explaination that uses a real database in the example.
I am having a nightmare using this code :)
Thanks..</description>
		<content:encoded><![CDATA[<p>Hey mate!<br />
Can we have a more detail explaination that uses a real database in the example.<br />
I am having a nightmare using this code <img src='http://www.moazam.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by monie</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-506</link>
		<dc:creator>monie</dc:creator>
		<pubDate>Tue, 05 Aug 2008 04:54:40 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-506</guid>
		<description>Hey mate, I really liked what you do with the script and I am dying to make it work on my ASP-MySQL page. I did manage to make it work on my PHP-MySQL page but not in my ASP page. Could you help me by giving an example on the working script together with the real data from the database? Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hey mate, I really liked what you do with the script and I am dying to make it work on my ASP-MySQL page. I did manage to make it work on my PHP-MySQL page but not in my ASP page. Could you help me by giving an example on the working script together with the real data from the database? Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by Sushant</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-499</link>
		<dc:creator>Sushant</dc:creator>
		<pubDate>Wed, 26 Mar 2008 07:02:44 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-499</guid>
		<description>Please put a full functional asp sample code..instead of putting in parts like Mr. Jovanky De Los Santos ...for newbies
thanks in advance</description>
		<content:encoded><![CDATA[<p>Please put a full functional asp sample code..instead of putting in parts like Mr. Jovanky De Los Santos &#8230;for newbies<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by kerem yolak</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-498</link>
		<dc:creator>kerem yolak</dc:creator>
		<pubDate>Tue, 22 Jan 2008 14:09:52 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-498</guid>
		<description>This pagination looks great, I want to use it on my pages which I created with an asp code generator program(asprunner).I couldnt figure out where to paste the codes of this script...This is adress I want to use pagination script.

http://www.sohodvdcenter.com/output/Filmler_list.asp?orderby=dFilmSiparisNo&#38;a=search&#38;value=1&#38;SearchOption=Contains&#38;SearchField=FilmTuru&#38;SearchFor=

Please help
Thanks
kerem</description>
		<content:encoded><![CDATA[<p>This pagination looks great, I want to use it on my pages which I created with an asp code generator program(asprunner).I couldnt figure out where to paste the codes of this script&#8230;This is adress I want to use pagination script.</p>
<p><a href="http://www.sohodvdcenter.com/output/Filmler_list.asp?orderby=dFilmSiparisNo&amp;a=search&amp;value=1&amp;SearchOption=Contains&amp;SearchField=FilmTuru&amp;SearchFor=" rel="nofollow">http://www.sohodvdcenter.com/output/Filmler_list.asp?orderby=dFilmSiparisNo&amp;a=search&amp;value=1&amp;SearchOption=Contains&amp;SearchField=FilmTuru&amp;SearchFor=</a></p>
<p>Please help<br />
Thanks<br />
kerem</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by Jovanky De Los Santos</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-495</link>
		<dc:creator>Jovanky De Los Santos</dc:creator>
		<pubDate>Fri, 28 Dec 2007 20:03:17 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-495</guid>
		<description>Here is a piece of the code I implemented, I hope it helps

Comm.CommandText = "Select Count(*) as Count from articles"
Set RS = Comm.Execute
Reqs = RS("Count")
Page = Request("Page")
If Page = "" then Page = 1
comm.commandtext = "SELECT *"&#38;_
"FROM   (SELECT ROW_NUMBER() OVER(ORDER BY Article_id) AS "&#38;_
       "rownum, Article_ID, Title, Body, Create_date, "&#38;_
       "meta_description FROM articles) AS Articles2 "&#38;_
"WHERE  rownum &#62;= "&#38;Page&#38;" AND rownum &#60;= "&#38;Cint(page)+ 5</description>
		<content:encoded><![CDATA[<p>Here is a piece of the code I implemented, I hope it helps</p>
<p>Comm.CommandText = &#8220;Select Count(*) as Count from articles&#8221;<br />
Set RS = Comm.Execute<br />
Reqs = RS(&#8221;Count&#8221;)<br />
Page = Request(&#8221;Page&#8221;)<br />
If Page = &#8220;&#8221; then Page = 1<br />
comm.commandtext = &#8220;SELECT *&#8221;&amp;_<br />
&#8220;FROM   (SELECT ROW_NUMBER() OVER(ORDER BY Article_id) AS &#8220;&amp;_<br />
       &#8220;rownum, Article_ID, Title, Body, Create_date, &#8220;&amp;_<br />
       &#8220;meta_description FROM articles) AS Articles2 &#8220;&amp;_<br />
&#8220;WHERE  rownum &gt;= &#8220;&amp;Page&amp;&#8221; AND rownum &lt;= &#8220;&amp;Cint(page)+ 5</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by Jovanky De Los Santos</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-492</link>
		<dc:creator>Jovanky De Los Santos</dc:creator>
		<pubDate>Fri, 28 Dec 2007 19:14:25 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-492</guid>
		<description>Meg and others, JoyJ is rigth, if you don't dominate ASP you may have a problem applying this script to it.  But this is as simple as it gets. All you have to do is look at the following piece of code:
ps = getPaginationString(page, 1500, 15, 2, "mytestpage3.asp?foo=bar")

See, the number 1500 reflects the full amount of records your recordset will return, 15 reflects how many you want to display per page. So all you need to do is store the amount of returnede records into a variable and replace the 1500 with it, then establish the amount of records you want to be displayed per page by replacing number 15 with whatever number of records you want to show on each page. The last thing you will need to do is modify your SQL query to return the total amount of records so you can store it on the variable, but also based on the ?foo=bar&#38;page=PageNumber value, you can use this as a querystring to tell your query the range of records you want to read from, for instance, if you determine that you have a total of 100 recs and want to split them by ten each, then your query shoud return 1 - 10 when ?foo=bar&#38;page=1, then 10 - 20 when ?foo=bar&#38;page=2 and so on...

Good luck</description>
		<content:encoded><![CDATA[<p>Meg and others, JoyJ is rigth, if you don&#8217;t dominate ASP you may have a problem applying this script to it.  But this is as simple as it gets. All you have to do is look at the following piece of code:<br />
ps = getPaginationString(page, 1500, 15, 2, &#8220;mytestpage3.asp?foo=bar&#8221;)</p>
<p>See, the number 1500 reflects the full amount of records your recordset will return, 15 reflects how many you want to display per page. So all you need to do is store the amount of returnede records into a variable and replace the 1500 with it, then establish the amount of records you want to be displayed per page by replacing number 15 with whatever number of records you want to show on each page. The last thing you will need to do is modify your SQL query to return the total amount of records so you can store it on the variable, but also based on the ?foo=bar&amp;page=PageNumber value, you can use this as a querystring to tell your query the range of records you want to read from, for instance, if you determine that you have a total of 100 recs and want to split them by ten each, then your query shoud return 1 - 10 when ?foo=bar&amp;page=1, then 10 - 20 when ?foo=bar&amp;page=2 and so on&#8230;</p>
<p>Good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by Meg</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-487</link>
		<dc:creator>Meg</dc:creator>
		<pubDate>Thu, 29 Nov 2007 07:09:57 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-487</guid>
		<description>Hi thanks alot fro the script. It works great. but i want to know how can i link it to a recordset. and how if i place the function in a new page and call it as a include file. right now i manage to call it from include file and i can display teh records..let say the 15 records. but when i click next it doesnt move to the next 15 records. please help..i really appreciate it.


                sSQL1 = "SELECT * FROM country1 " 
   	 set RsCountry = conn.Execute(sSQL1)
   	slimit=15
   	 stargetpage="testpagination.asp?foo=bar"
   	 sadjacent=2
   	 ps = getPaginationString(page, sstring, slimit, sadjacent, stargetpage)
   	   	
   	If Not RsCountry.EOF Then	


&lt;strong&gt;Country ID &lt;/strong&gt;
&lt;strong&gt;CountryCode &lt;/strong&gt;
&lt;strong&gt;CountryName&lt;/strong&gt;
&lt;strong&gt;TelephoneCCode&lt;/strong&gt;


			 
			 
  &#60;tr bgcolor="" align="center"&#62;




  
  
this is in testpagination paeg and the function is in function page. right now the output of the code is a single record and stays the same on click of any page.</description>
		<content:encoded><![CDATA[<p>Hi thanks alot fro the script. It works great. but i want to know how can i link it to a recordset. and how if i place the function in a new page and call it as a include file. right now i manage to call it from include file and i can display teh records..let say the 15 records. but when i click next it doesnt move to the next 15 records. please help..i really appreciate it.</p>
<p>                sSQL1 = &#8220;SELECT * FROM country1 &#8221;<br />
   	 set RsCountry = conn.Execute(sSQL1)<br />
   	slimit=15<br />
   	 stargetpage=&#8221;testpagination.asp?foo=bar&#8221;<br />
   	 sadjacent=2<br />
   	 ps = getPaginationString(page, sstring, slimit, sadjacent, stargetpage)</p>
<p>   	If Not RsCountry.EOF Then	</p>
<p><strong>Country ID </strong><br />
<strong>CountryCode </strong><br />
<strong>CountryName</strong><br />
<strong>TelephoneCCode</strong></p>
<p>  &lt;tr bgcolor=&#8221;" align=&#8221;center&#8221;&gt;</p>
<p>this is in testpagination paeg and the function is in function page. right now the output of the code is a single record and stays the same on click of any page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by Alejandro Barrere</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-482</link>
		<dc:creator>Alejandro Barrere</dc:creator>
		<pubDate>Sun, 28 Oct 2007 01:49:56 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-482</guid>
		<description>Hi,

Good script but question... how do you attached this into records from your database? (access)

I will appreciate your help.

Regards,
Alejandro.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Good script but question&#8230; how do you attached this into records from your database? (access)</p>
<p>I will appreciate your help.</p>
<p>Regards,<br />
Alejandro.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP: Digg Style Pagination Script by Lucas Soler</title>
		<link>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-16</link>
		<dc:creator>Lucas Soler</dc:creator>
		<pubDate>Thu, 12 Jul 2007 10:28:44 +0000</pubDate>
		<guid>http://www.moazam.com/2007/03/30/asp-digg-style-pagination-script/#comment-16</guid>
		<description>Hello again, I found the error in line 147

pagination = pagination &#38;  "&lt;a&gt;"&#38;lastpage&#38;"&lt;/a&gt;"

The correct is 

pagination = pagination &#38;  "&lt;a&gt;"&#38;lastpage&#38;"&lt;/a&gt;"</description>
		<content:encoded><![CDATA[<p>Hello again, I found the error in line 147</p>
<p>pagination = pagination &amp;  &#8220;<a>&#8220;&amp;lastpage&amp;&#8221;</a>&#8221;</p>
<p>The correct is </p>
<p>pagination = pagination &amp;  &#8220;<a>&#8220;&amp;lastpage&amp;&#8221;</a>&#8220;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
