<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: [Javascript] General design question</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Bob,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Do you mean store a list of all the links in a
table and flag them Admin Yes or No?</FONT></DIV>
<DIV><FONT face=Arial size=2>Then use something like:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>if (after SQL in link table) tblLink.fldAdmin
</FONT><FONT face=Arial size=2>= true then<BR><a
href="link.asp">Link</a><BR>end if<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Bill<BR></DIV></FONT>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:filipiab@atsc.army.mil" title=filipiab@atsc.army.mil>Filipiak,
Bob (Contractor)</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:'javascript@LaTech.edu'"
title=javascript@LaTech.edu>'javascript@LaTech.edu'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 16, 2001 10:12
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Javascript] General design
question</DIV>
<DIV><BR></DIV>
<P><FONT size=2>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.</FONT></P>
<P><FONT size=2>Bob Filipiak (Contractor)</FONT> <BR><FONT size=2>MCP
</FONT></P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
Andrew Dunn [<A
href="mailto:adunn@mail.interworx.com.au">mailto:adunn@mail.interworx.com.au</A>]</FONT>
<BR><FONT size=2>Sent: Sunday, July 15, 2001 8:01 PM</FONT> <BR><FONT
size=2>To: javascript@LaTech.edu</FONT> <BR><FONT size=2>Subject: RE:
[Javascript] General design question</FONT> </P><BR>
<P><FONT size=2>if you are using asp why not use a session variable to hold
the user state</FONT> <BR><FONT size=2>(if admin or not)? If the session
variable ie. session("admin") = true then</FONT> <BR><FONT size=2>display
links or not display links.</FONT> </P>
<P><FONT size=2>if session("admin") = true then</FONT>
<BR> <FONT size=2><a
href="link.asp">Link</a></FONT> <BR><FONT size=2>end if</FONT>
<BR><FONT size=2>--------%< Snipped
%<----------------------------------------</FONT>
</P></BLOCKQUOTE></BODY></HTML>