Re: CSS/ASP help needed

by "Mike Taylor" <lonewolf(at)one.net>

 Date:  Wed, 15 Aug 2001 19:50:40 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  wednet
  todo: View Thread, Original
Mark:

Your main problem has already been mentioned, just a minor edit to your
quotation mark at class='school''.  Also check out the cases on your class.
(School vs. school)

I was wondering, though, why you check for the variable to equal none and
then response.write nothing.  Was there a reason for that?  If not, you can
achieve the same thing just by doing:

<%
If strDirections <> "none" Then
    response.write "<a href='/schools/directions.asp?school=" & strSchool &
"' class='school'>Driving directions</a><br>"
End If
 %>

Mike


----- Original Message -----
From: "Mark Johnson" <johnsonm(at)issaquah.wednet.edu>
To: <hwg-techniques(at)hwg.org>
Sent: Wednesday, August 15, 2001 3:26 PM
Subject: CSS/ASP help needed


> The right hand menu on
> http://164.116.92.246/schools/school.asp?school=sunny looks funny in
> netscape, but looks good with IE.  The text formatting is determined by
> linked css file.  Some of the menu items are built via asp, and others
> are straight html.  It's the asp developed menu items that are giving me
> fits.
>
> Relevant code snip from school.asp:
>
> <%
> If strDirections = "none" Then
>    response.write ""
> Else
>    response.write "<a href='/schools/directions.asp?school=" & strSchool
> & "' class='school''>Driving directions</a><br>"
> End If
> %>
> <.a href="/schools/apollo.asp" class="School">Emergency
information</a><br>
>
> HTML sent to the browser
>
> <a href='/schools/reports/2001Sunny.pdf' class='school''>2001 Report
> Card</a><br><a href='/schools/directions.asp?school=Sunny'
> class='school''>Driving directions</a><br>
> <a href="/schools/apollo.asp" class="School">Emergency information</a><br>
>
> I think the problem is created by the transition between ' and " .
> Suggestions on how to best work around this?
>
> Thanks! Mark
>
>
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA