Im pretty sure this forum is for PHP not ASP
But anyway
the way PHP does it is.. header("LOCATION: blah.php");
if you wanna see if theres an error.. im not exactly sure on how to see if there is.. But you could try functions..
or OOP
$this->con="asdasd";
if(!$this->con)
{
$this->error="Message for error maybe LINE FILE etc";
$this->error();
}
thats not very good but yea
then a function called
function error()
{
return $this->error;
}
something like that.. would do..