CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How to display Session(UserID) as a footer

Print topic Send  topic

Author Message
nagu
Posted: 05/30/2002, 2:20 PM

Hi,

I am using ASP with templates. I want to show the session var UserID as a footer in all the pages. Can someone tell me a way to do this?

thanks,

nagu
Harry
Posted: 05/30/2002, 2:30 PM

I use a label and then in the asp code I use label1.value = Session("UserID")
Hope that does you some good.
nagu
Posted: 05/31/2002, 11:23 AM

I tried and it didnt work. Can you elaborate little bit? I tried Menu type of form with one field as label and do the code u r suggesting in Open or before show event....

thanks,

nagu
harry
Posted: 05/31/2002, 4:12 PM

If you add a Label and on the Properties for Default Just type the
Session("UserID"). What I usually do that works fine is ad Text like this to the form in Html Mode. Your User Id is: {Label} Insert label and then just set your Properties. It is better for something that simple to just add the session to the Default Property so that the code will generate properly.
I use that method all the time and it works with ASP 3.0 and Templates
If you are putting it in the Footer you made have to Include the common.asp file. I don't know for sure because I have never tryed putting something in the Footer like that. But it should work.
nagu
Posted: 06/10/2002, 3:01 PM

I finally figured out my problem. Though I added footer file and the definition in properties page, the footer definition was not getting into common.asp

I had to manually introduce the second line in Common.asp

Dim sHeaderFileName : sHeaderFileName = sAppPath & "Header.html"
Dim sFooterFileName : sFooterFileName = sAppPath & "Footer.html"

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.