navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Session variables and queries

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Session variables and queries
Page: [1]
 
Wendy P

 

Posts: 17
From: Timmins, Ontario, Canada
Status: offline

 
Session variables and queries - 5/16/2001 13:38:00   
I want to query my database using a session variable as the search parameter (frontpage wizard). My session variable is for a username. Can anyone tell me the query string I need to use to perform this search or how you use a session variable in a query?

Other info. of note:
table name: tblMF
field name: txtLoginUser

Thanks in advance

Wendy

rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: Session variables and queries - 5/16/2001 15:15:00   
What I've done (and has been suggested by others) is to use the session variable in the page linking to the results. IOW, something like this..

Assuming you had Session("UserName") already set: Page 1 has a link to page 2 that is something like:

<a href="page2.asp?txtLoginUser=<%=Session("Username")%>">Page 2</a>

...and Page 2 had the txtLoginUser as a search criteria in (I think) step 3 of the DRW. When you used the link, it should fill page 2 with the found data set. At least I have a very similar scenario and that's how I do it. I will give you a more detailed example of my code if you would like.

I have tried and I don't believe you can access a session directly within the "Grey Code" (the DRW area). If anyone HAS accomplished this, I would be very interested in learning that...

[This message has been edited by rdouglass (edited 05-16-2001).]


(in reply to Wendy P)
Wendy P

 

Posts: 17
From: Timmins, Ontario, Canada
Status: offline

 
RE: Session variables and queries - 5/17/2001 20:42:00   
Thanks for your help with this. I suspected that I may have to pass the variable between pages, but couldn't find anything to confirm this.

I suspect the problem is caused by the FrontPage web bot components. I ran into several problems that have been caused by the web bot component's interference in my asp code. I read an article entitled "Putting your pages on a diet" (or something like that) somewhere on this site and tried to reproduce my code using the example, but couldn't get it to work. I guess I'll have to learn more before I can muck with the web bot components.

Thanks again for your help

Wendy


(in reply to Wendy P)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Session variables and queries - 5/17/2001 16:23:00   
Send me a copy of a page if you like Wendy, Ill comment the parts that need changing for you to help you learn it !

(in reply to Wendy P)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Session variables and queries
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts