[Javascript] General design question

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Mon Jul 16 15:19:27 CDT 2001


Basically yes but you also need a table to identify who has Admin access.
The visitor would enter their userid and your asp page would check that id
against the table and set a variant to TRUE. Then the page would loop
through all the links in the DB and skip any Admin links as appropriate. 
 
You really should join one of the ASP lists at asplists.com like
http://www.asplists.com/asplists/aspclient.asp
<http://www.asplists.com/asplists/aspclient.asp>  or
http://www.asplists.com/asplists/aspfreeforall2.asp
<http://www.asplists.com/asplists/aspfreeforall2.asp> 
 

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Bill Marriott [mailto:bill.marriott at optusnet.com.au]
Sent: Monday, July 16, 2001 4:00 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] General design question


Bob,
 
Do you mean store a list of all the links in a table and flag them Admin Yes
or No?
Then use something like:
 
if  (after SQL in link table) tblLink.fldAdmin = true then
<a href="link.asp">Link</a>
end if

Bill


----- Original Message ----- 
From: Filipiak, Bob (Contractor) <mailto:filipiab at atsc.army.mil>  
To: 'javascript at LaTech.edu' <mailto:'javascript at LaTech.edu'>  
Sent: Monday, July 16, 2001 10:12 PM
Subject: RE: [Javascript] General design question


Better yet, since you are using a DB why not modify the table to have a
column with a Admin flag for those links that are for Admin only and
validate the visitor against the db that way you don't have to rely on
cookies being enabled. Just a thought.

Bob Filipiak (Contractor) 
MCP 

-----Original Message----- 
From: Andrew Dunn [ mailto:adunn at mail.interworx.com.au
<mailto:adunn at mail.interworx.com.au> ] 
Sent: Sunday, July 15, 2001 8:01 PM 
To: javascript at LaTech.edu 
Subject: RE: [Javascript] General design question 


if you are using asp why not use a session variable to hold the user state 
(if admin or not)? If the session variable ie. session("admin") = true then 
display links or not display links. 

if session("admin") = true then 
        <a href="link.asp">Link</a> 
end if 
--------%< Snipped %<---------------------------------------- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010716/b4ef04d6/attachment.htm>


More information about the Javascript mailing list