Using variable in results title

S

Stephen Green

I've got a working database results page with a drop down criteria selector.

I noticed that as the page does its work, the item selected in the drop down
reverts to the default. This leaves the impression that the resultant
report is using the criterion that is visible (the default).

So I thought I'd try to create a report title just above the results that
would use the memory variable that was chosen.

I've tried and tried, but haven't been able to figure it out.

Does anyone have any ideas that would help?

OR, can the drop down behavior be altered so that once the criterion is
selected it stays visible?

Thanks for any help you can offer.

Stephen
 
C

Chris Leeds, MVP-FrontPage

I assume there are values being put into the drop down, then displayed on
the page.
you could <% response.write "whateverthevalueis" %>.
you could surround this with <h1> and/or mark it up with your style sheet to
make it more prominent.

HTH

--
Chris Leeds,
Microsoft MVP-FrontPage

Please feel free to contact me here:
http://nedp.net/contact/
 
S

Stephen Green

Thanks, Chris!

Since the value is a variable, is there something special I have to do to
use it? In the query it is surrounded by colons, thus: ::projectType::

Do I need to do that? Or surround the entire thing in quotes? Or...

Thanks for your help.

Stephen
 
S

Stephen Green

After alot of trial and error (and searching the web for ASP tutorials), I
figured it out. the drop down form submits ProjectType.

<%
dim vProjectType
vProjectType=Request.Form("ProjectType")
Response.Write("Project Type: <b>" & vProjectType & "</b>")
%>

Thanks.

Stephen
 
C

Chris Leeds, MVP-FrontPage

sorry I didn't get back to you quicker, I've been tied up.
I'm glad you got it. Pretty cool isn't it?

--
Chris Leeds,
Microsoft MVP-FrontPage

Please feel free to contact me here:
http://nedp.net/contact/
--
 
Top