ASP : If - Then Propagating Data From Previous Session (Sort of newbie to asp)

A

A Techie

All --

Here's my code :

If ucase(request.querystring("pass"))="MW" and rs("is_file")=TRUE then
Response.Write "stuff" End If

If ucase(request.querystring("pass"))="IT" then
if rs("is_file")=TRUE then Response.Write "something" End If
End If

[Note : I was playing with 'if-thens' to see if that was the problem.]

Now whenever I pass the page the 'pass' variable of 'mw,' my page
displays the results for both 'mw' AND 'it'!

As in : http://server.asp?pass=mw

I've been struggling with for a while and wondering if I'm simply
missing something rudimentary.

If you can forward to my email address, that would be appreciated as
well.

Your assist is kindly appreciated !

Best,

-- B.
 
R

Ray at

Another option:

bIsFile = CBool(rs.Fields.Item("is_file").Value)

If UCase(Request.Querystring("pass")) = "MW" And bIsFile Then

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top