Redirecting a Request in PowerShell ASP
PowerShell ASP works in much the same way that ASP.NET would. Redirecting the user to another webpage is no different. Below is an example showing how to redirect the user to /n Software's website:
<html> <head> <link href="stylesheet.css" rel="stylesheet" type="text/css"></link> </head> <body> <% #Use $false for the endResponse Parameter so the website's execution #from terminating prematurely. $Response.Redirect("http://www.nsoftware.com", $false) %> </body> </html>Note that the $false parameter is required in the Redirect method to prevent the website's execution from terminating prematurely. Without this paramenter the user will see a Thread was being aborted error.
We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@nsoftware.com.