<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Javascript] General design question</TITLE>

<META content="MSHTML 6.00.2462.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=623371220-16072001><FONT face=Arial color=#0000ff 
size=2>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. 
</FONT></SPAN></DIV>
<DIV><SPAN class=623371220-16072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=623371220-16072001><FONT face=Arial color=#0000ff size=2>You 
really should join one of the ASP lists at asplists.com like <A 
href="http://www.asplists.com/asplists/aspclient.asp">http://www.asplists.com/asplists/aspclient.asp</A>&nbsp;or 
<A 
href="http://www.asplists.com/asplists/aspfreeforall2.asp">http://www.asplists.com/asplists/aspfreeforall2.asp</A></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<P><FONT size=2>Bob Filipiak (Contractor)<BR>MCP </FONT></P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Bill Marriott 
  [mailto:bill.marriott@optusnet.com.au]<BR><B>Sent:</B> Monday, July 16, 2001 
  4:00 PM<BR><B>To:</B> javascript@LaTech.edu<BR><B>Subject:</B> Re: 
  [Javascript] General design question<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Bob,</FONT></DIV>
  <DIV>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>if&nbsp; (after SQL in link table) 
  tblLink.fldAdmin </FONT><FONT face=Arial size=2>= true then<BR>&lt;a 
  href="link.asp"&gt;Link&lt;/a&gt;<BR>end if<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Bill<BR></DIV></FONT>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=filipiab@atsc.army.mil 
    href="mailto:filipiab@atsc.army.mil">Filipiak, Bob (Contractor)</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
    href="mailto:'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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT size=2>&lt;a 
    href="link.asp"&gt;Link&lt;/a&gt;</FONT> <BR><FONT size=2>end if</FONT> 
    <BR><FONT size=2>--------%&lt; Snipped 
    %&lt;----------------------------------------</FONT> 
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>