Spaces:
Running
Running
File size: 1,315 Bytes
10865e1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
<%@ Language=Python %>
<HTML>
<HEAD>
<BODY BACKGROUND="/samples/images/backgrnd.gif">
<TITLE>Python test</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<SCRIPT Language="Python" RUNAT=Server>
# NOTE that the <% tags below execute _before_ these tags!
Response.Write("Hello from Python<P>")
Response.Write("Browser is "+bc.browser)
import win32api # Should be no problem using win32api in ASP pages.
Response.Write("<p>Win32 username is "+win32api.GetUserName())
</SCRIPT>
<BODY BGCOLOR="FFFFFF">
<%
import sys
print sys.path
from win32com.axscript.asputil import *
print "Hello"
print "There"
print "How are you"
%>
<%bc = Server.CreateObject("MSWC.BrowserType")%><%=bc.browser %><%=bc.version %><%Response.Write( iif(bc.frames, "TRUE", "FALSE")) %><%Response.Write( iif (bc.tables, "TRUE", "FALSE")) %><%Response.Write( iif(bc.BackgroundSounds, "TRUE", "FALSE"))%><%Response.Write( iif(bc.vbscript, "TRUE", "FALSE"))%><%Response.Write( iif(bc.javascript, "TRUE", "FALSE"))%> |