ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





Sample HTML Code generated by the ASP:
<p>Search our sample db by first or last name.  (% returns all)</p>
<form action="/samples/db_paged_search.asp" method="get">
<input name="search" value="a" />
<input type="submit" />
</form>
<p>
[Since we've got a very small sample DB, try a single letter
search like 'a' or 'e' for an example that actually pages!]
</p>
		<hr />
		<p>
		20 Records Found.  Displaying page 2 of 4:
		</p>
		<table border="1">
		<tr>
		<th>Name</th>
		<th>Sales</th>
		</tr>
			<tr>
			<td>Andrew    Fuller    </td>
			<td>5000</td>
			</tr>
			<tr>
			<td>Chris     Graham    </td>
			<td>4050</td>
			</tr>
			<tr>
			<td>Owen      Ingraham  </td>
			<td>4750</td>
			</tr>
			<tr>
			<td>Edward    Jones     </td>
			<td>3450</td>
			</tr>
			<tr>
			<td>Janet     Leverling </td>
			<td>6250</td>
			</tr>
		</table>
		<p>
			<a href="/samples/db_paged_search.asp?search=a&page=1">[<< Prev]</a>
				<a href="/samples/db_paged_search.asp?search=a&page=1">1</a>
				2
				<a href="/samples/db_paged_search.asp?search=a&page=3">3</a>
				<a href="/samples/db_paged_search.asp?search=a&page=4">4</a>
			<a href="/samples/db_paged_search.asp?search=a&page=3">[Next >>]</a>
		</p>


Output

Samples
Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers