[thelist] [ASP] newbie resources

Benjer futureweb at macmail.com
Fri Nov 15 10:38:00 CST 2002


>At least pieces-parts were helpful.

very helpful, just kind of gets you thinking in the right way.

> serve up a static page that doesn't let users 'show' or 'hide'
> different portions then you can do this all in ASP and not worry
> about the client-side script
exactly, sorry. My current plan is to include a separate asp page with the
following to show hide etc..
[CODE]
<%
Dim showSub
showSub = Trim(Request.QueryString("subMenu"))
If (showSub = "chinaHouseExpress") Then
  %>
<div id='subHead'><img src='images/expressSub.gif' width='157' height='20'>
<%
Else If (showSub = "setMenu") Then
%>
  <div id="subHead"><img src="images/setMenu Sub.gif" width="157"
height="20"></div>
<%
Else If (showSub = "starters") Then
%>
  <div id="subHead"><img src="images/salads Sub.gif" width="157"
height="20"></div>
<%
End If
%>
[/CODE]

this is someone in our office idea... I was unsure about opening and closing
the ASP tags - does this mean more visits to server/slower etc.

Now, with a good naming strategy could i in fact remove most of that (i do
have one DIV which is very different, maybe if else for the different one)
ie

Response.Write"<div id='subHead'><img src='images/
insertVarNameHereSomeHow+
Sub.gif'></div>"


Sorry for the ramble....





More information about the thelist mailing list