Sorry I see I missed it when I pasted it in... The enitre file should like
so....
<html>
<head>
<title>Will Test</title>
</head>
<body>
<h3>Test Submitting a UV Command</h3>
<form action="index.asp" name="Testfrm" method=post>
<input type=text name="uvcommand" value="SORT VOC">
<input type=submit>
</form>
<%
if request.form("uvcommand") <> "" then
Dim Sess, UVCommand, TheCommand, Text
TheCommand = request.form("uvcommand")
response.write "Command : " & TheCommand & "<br>"
Set Sess = CreateObject("Universe.session.1")
Sess.HostName = "Machine or IP"
Sess.UserName = "uv username"
Sess.AccountPath = "account or account path"
Sess.Password = "uv user password"
' Now connect
Sess.connect
'
if Sess.error then
response.write "<SCRIPT LANGUAGE='JavaScript1.1'>"
response.write "alert('Cannot connect to Database..." & Sess.ERROR &
"')"
response.write "</SCRIPT>"
response.write "<h1>[" & Sess.hostname & "] - Database Error</h1>"
else
response.write "UV Session is active...<br>"
' To issue a command
set UVCommand = Sess.Command
UVCommand.Text = TheCommand
UVCommand.Exec
' Now write the response to the page
Response.Write UVCommand.Response
end if
end if
%>
</body>
</html>
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, February 14, 2005 3:25 PM
Subject: Re: [U2] Universe to Web interface
> Vance you sent some code that used asp to get information out of Universe,
but is it missing something? When I load that page in my browser all I get
is a blank page.
>
> You have a line that says
> TheCommand = request.form("uvcommand")
>
> but you don't have anywhere where you setup a form called uvcommand. Does
this line mean I also need a form called uvcommand and that it's whatever
you type into that form that will eventually (later in your sample code) get
executed?
> Thanks
> Will
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/