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
Printable View
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
Use the OnClick Event of the Button.
I don't Get What SP is...
Redirection is by changing the location.href property.
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
But How please ??
Create javascript in the new page's window_onload event that contains this:
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.Code:window.history.back();