Problems with python in asp

kellyk at my-deja.com kellyk at my-deja.com
Wed Mar 8 17:32:41 EST 2000


The statements within the if statement aren't being seen as having
spaces. It may be easier to use pure Python and use Request.Write().
Something like this:

<%@ LANGUAGE = Python %>
<%
import string
category = Request.QueryString("cat")
if category == "mainmenu":  #Line 10
  Request.Write("<TITLE>" + category + "</TITLE>")
else:
  Request.Write("<TITLE>" + category + "</TITLE>")
%>

I haven't tried the <%= variable %> syntax so I don't know if it is
possible to use spaces with it.

Kelly


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list