Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2006, 06:06 PM
Authorized User
 
Join Date: May 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default Querystring or not?

Hello all,
I am trying to acheive this: I have a results.asp page showing the output [u]in rows.</u> I would like to make one of the values (in every row) into a hyperlink (possibly the ID field), so users can click to see more data in a new page.

Am I looking at a querysting here? Would apprecaite a sample of some general code as to how this works.
Hope to hear & TIA.

 
Old July 1st, 2006, 01:45 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I assume you are wanting to show more details about the row that is clicked on when they click the hyperlink for that row.

By default, when you use a hyperlink, the request is going to be a "GET", and use the querystring. In that case, as you build the hyperlink for each row you will want to include a whatever querystring parameters that you will need for identifying the row that was clicked.

An alternative would be to use some Javascript to submit the page, using the onclick event of the hyperlink. When you do this you would be able to use a "POST", allowing you to use form variables for processing the request.

The simplest thing is to just go ahead the the first method, and build your hyperlinks to add querystring parameters.

Make sense? There are a lot of samples of this in all the ASP books and sites.

Woody Z http://www.learntoprogramnow.com
 
Old July 3rd, 2006, 06:45 PM
Authorized User
 
Join Date: Jun 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb
Default

You want to present say 10 rows at a time then go to the next ten rows when they click on the next or previous button?

If this it the case use PageCount

Earl
www.jhdesigninc.com



 
Old July 4th, 2006, 06:40 AM
Authorized User
 
Join Date: May 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the reply...
I was after the Querystring, and it's works fine.

Seems like I may as well incorporate erobb's advice too as sooner or later there should more than 10 users.

Any straight fwd examples on PageCount anywhere?:) (or shall I Google it?)

 
Old July 4th, 2006, 09:01 AM
Authorized User
 
Join Date: Jun 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb
Default

This is a helpful example of pagecount.

http://support.microsoft.com/kb/q202125/

Earl
www.jhdesigninc.com






Similar Threads
Thread Thread Starter Forum Replies Last Post
using querystring melkin Classic ASP Basics 7 April 1st, 2008 09:07 AM
PHP Querystring kaustic Beginning PHP 1 November 2nd, 2007 01:42 AM
request querystring dannyphw ASP.NET 1.0 and 1.1 Basics 1 October 25th, 2004 10:35 AM
Value in Querystring not being passed u_heet Classic ASP Professional 2 September 16th, 2004 07:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.