CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 hiding a link for only one user

Print topic Send  topic

Author Message
flipandboef


Posts: 107
Posted: 01/11/2007, 8:05 AM

Is there a way I can hide a link in my header when one particular person is logged in?
This is the situation:
I have a group called "Designers" that subscribe to get access to a certain area. This group has a sec. level "2"
What I need is to make a "generic" designer that I can give out to some users, so they can have access to this part when I want to show them something in this area, and will change this password every week (so they will have no more access after that)....
The "Designers" of course need to keep this access.
In my header I have a link: "Your Profile" where designers can change their password etc...
I want to hide this link from this "generic" user. For the generic user I created a member called "Generic".
I rather not add an extra sec. level (1 lower then the Designers) because this means I have to adjust over 200 pages :-/
Is there any way I can hide this link (not in a grid etc) in my header so that If UserName="Generic" link is not visible?
Please help, thanks.

ASP / CCS 3.1 / MS-Access DB

P.s.: I'm a kind of a new-bee to coding so go easy on me O:)
View profile  Send private message
matheus

Posts: 386
Posted: 01/11/2007, 9:40 AM

200 pages and is a newbie? Strange this, but ok.

You can make a Custom Code, where you compare the name, if cannot show, setVisible(false) to the Link.

Put the Link with Extended HTML.

_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
flipandboef


Posts: 107
Posted: 01/11/2007, 9:53 AM

matheus,
Thanks for your reply.
I'm a newbie when it comes to the custom coding. I mostly used CCS with the "basics"
I already had a feeling that I needed to work with the Visible = True/False statement and I can implement this fine when it comes to a grid or panel, however I do not use these within my header. (also do not use any tables in the header)
Should I implement a Panel within the header to accomplish this or do you have an example code for me I could use instead in the BeforeShow event?
Thanks.
View profile  Send private message
matheus

Posts: 386
Posted: 01/11/2007, 10:02 AM

Why you don't use SetVisible Before Show the Control Link?
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
wkempees
Posted: 01/11/2007, 12:08 PM

further to Matheus:

and identify the 'special' Designer by his Id.
You apparently have only 1 such user in your usertable, add the link as
invisible an set it to visible depending on GetUserID() == your special
users ID
Bad practice, but works ok

LOL

Walter


Add new topic Subscribe to topic   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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