Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with adding '&page=2' to a URL. HELP!!!

Status
Not open for further replies.

Albuckj2

Programmer
Jan 7, 2003
68
GB
I have a webpage that takes user's input from a form, and then once submitted displays a new ASP page that displays the results in the form of a table.

I am having big problems trying to allow a certain number of records in the table to be shown on any one page. For example, a query may return 100 results, but I want to view them as 10 per page.

Mt ASP page is called page2d.asp
I seem to be able to display my table so it only produces 10 results on the first page, and I have links at the bottom for the other pages.

e.g. <a href=&quot;page2d.asp&page=<%= I %>&quot;><%= I %></a>
where 'I' is the page number.

However page 'page2d.asp&page=2' for example is not even found, and neither is any of the other pages. I feel I'm missing something fundamental here. Do I need to change something on my page2d.asp page to allow for these additional &quot;page=2&quot; (for e.g.) on the end of the URL? because it doesn't seem to find them.

Cheers for any help,

Alex.
 
The first parameter in an Url must be precedeed by a &quot;?&quot; char. The &quot;&&quot; char is used for parameters from the second.
Exemple :
Code:
page2d.asp?page=2
is OK
Code:
page2d.asp?page=2&id=25&name=Joe
is OK
Code:
page2d.asp&page=2
is Wrong
Code:
page2d.asp&page=2&id=25&name=Joe
is Wrong
Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top