Click to See Complete Forum and Search --> : Please Help Redirect page
efrat
Mar 13th, 2001, 04:23 AM
I have command in one page for exeample command exit i want that when the user
Click on this command 2 things will happend
1)Run SP
2)Redirect to the Previous page
Please help
thanks
efrat
Active
Mar 13th, 2001, 05:23 AM
Use the OnClick Event of the Button.
I don't Get What SP is...
Redirection is by changing the location.href property.
efrat
Mar 13th, 2001, 06:22 AM
objCn.Execute "Insert_Event '" & Request.QueryString("PackageMark") & "'" & _
", '" & session("Operator") & "'" & _
", " & intProcID & _
", '" & Request.QueryString("Comment") & "'" & _
", '" & Request.QueryString("Result") & "'" & _
", '" & Request.QueryString("Status") & "'"
'Here iwant the Redirect to the Previous page
efrat
Mar 13th, 2001, 11:31 AM
But How please ??
monte96
Mar 13th, 2001, 02:18 PM
Create javascript in the new page's window_onload event that contains this:
window.history.back();
The history object is not available to you on the server side, so you will have to run your server side code, then let the page load on the client side and once the </HTML> tag is hit, it will redirect to the previous URL.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.