Forum Moderators: open

Message Too Old, No Replies

want to force a ASP page to do a submit button

want to force a ASP page to do a submit button

         

smitko

12:01 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



Here is 3 asp's , I am working on a network and want the user to sign on evertime he start a certain page (Windows autentication)

this is test1.asp,test2.asp and test3.asp

When in test2.asp I change that it show the buttton, it alway's ask for sign in, but when I do a response.redirect, it sign's the user on automaticaly with his network ID, which is not correct, It MUST prompt the user for signon, and the go to a menu where the menu use build accourding the user rights.

ASP 1
<%
session("ui") = ""
Response.Redirect "test2.asp"
%>

ASP 2
<%
if session("ui") = "" then
response.Status = "401 access denied"
end if
if session("ui") = "" then
session("ui") = request.ServerVariables("LOGON_USER")
end if
'Response.Redirect "test4.asp"
'Response.write "+++" & session("ui") & "---"
%>
<form method="POST" action="test3.asp" id="form1" name="form1">
<!--webbot bot="SaveResults" u-file="../../_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" --><p>
<input type="submit" value="Submit" name="B1"></p>
</form>

ASP 3
<%

if session("ui") = "" then
Response.Redirect "test1.asp"
else
if request.ServerVariables("LOGON_USER") <> "" then
session("ui") = request.ServerVariables("LOGON_USER")
else
Response.Redirect "test1.asp"
end if
end if

Response.Write session("ui")
Response.End
%>

jsbeads

2:41 pm on Mar 2, 2004 (gmt 0)

10+ Year Member



You will need to trigger a client side event to submit the form. Using either Javascript or VBscript.