Session Values

G

Guest

The site I am working on has a picklist page of
counties. When a user clicks a county name, I want him
to be taken to county.asp.

On county.asp, I want several DRWs. Each needs to have
the county name selected passed to it. Someone was kind
enough to tell me to store the variable in a session. My
problem is that I do not know about sessions and my
materials do not seem to have information about them.

Would someone be kind enough to explain it to me or point
me to a tutorial about to do this?
 
T

Thomas A. Rowe

It doesn't sound like your need to use session values.

On county.asp all you need to do is use the following in your querystring to retrieve county info
for each query

Request.Form("fieldname")

The above is the name assigned to the picklist on the previous page.

Whenever possible to try always use the least number of recordsets (queries) per page, they may
require re-thinking your database structure, especially if using the FP Database Components.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Guest

Wow! You are correct. I guess I didn't try it because I
figured it would require more than I knew how to do.

Thanks.

Tied in with this is one other thing. As I said, the
user will select a county (e.g. Union). Doing so will
take him to county.asp with the information displayed for
Union County that I want to display for him.

Is there any way to display the countyname variable
("Union County") in the page banner area?
-----Original Message-----
It doesn't sound like your need to use session values.

On county.asp all you need to do is use the following in
your querystring to retrieve county info
for each query

Request.Form("fieldname")

The above is the name assigned to the picklist on the previous page.

Whenever possible to try always use the least number of
recordsets (queries) per page, they may
require re-thinking your database structure, especially
if using the FP Database Components.
 
T

Thomas A. Rowe

Not if you are using FP navigation/banner components. If can be displayed as text anywhere on the
page by using insert the following in HTML / Code view:

<%=Request.Form("fieldname")%>

The you can switch back to Normal / Design View and apply fonts, etc.

If you are just passing "Union" and not "Union County" then you will need to display as:

<%=Request.Form("fieldname")%>&nbsp;County

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Guest

That doesn't seem to work for me. I just get white
space. The variable is not displying (it's not a fint
color issue).
 
T

Thomas A. Rowe

You are doing this on county.asp correct?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

Can you paste the code into a message here for county.asp?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top