CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Display login user name below header.asp

Print topic Send  topic

Author Message
Kris
Posted: 01/31/2002, 7:35 AM

How do I display the logged in user name on a page below header.asp?
Some like this. Initially <Welcome Login...> and after login <Welcome Kris>.
Something similar to some of the portals.

Thanks a lot.
Mike
Posted: 09/06/2002, 9:14 PM

Did you figure out how to do this? I want to know as well....
NN
Posted: 09/07/2002, 9:14 AM

Mike, I think Kris is asking "how to do it".
Dan
Posted: 09/08/2002, 3:08 AM

Try this:

place a label where you like and add a "Before Show Custom Code".

In Custom Code write this:

Header.label1.Value = "No user logged on"
If Session("UserID") >= 1 then Header.label1.Value = "Welcome " & Session("UserLogin")

I think the code explains itself
Dan
Cassie
Posted: 10/26/2002, 10:38 PM

You the man Dan!!!

Nice answer. Clear, simple and I was able to do it after many other failed attempts!
lneisius
Posted: 10/31/2002, 4:21 PM

Dan:
How do I make this a link to the login page when no user is logged in?
andash
Posted: 03/05/2003, 2:40 PM

Wish Id found this sooner - nice
Mehmet Ozdemir
Posted: 03/05/2003, 6:23 PM

>>How do I make this a link to the login page when no user is logged in?

Following the above example ie:

place a label AND link control where you like and add a "Before Show Custom Code".

Set link control type = Code Expression, link control source = "Login", href type = page and finally source = Login.ccp


In Custom Code write this:

If Session("UserID") >= 1 then
Header.label1.Value = "Welcome " & Session("UserLogin")
Header.link.Visible = False
Else
Header.label1.Value = ""
Header.link.Visible = True
End If
lneisius
Posted: 03/05/2003, 7:09 PM

Thanks: Mehmet Ozdemir But I got this months ago on my own since there were no replies!

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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