Hi again, Sorry but it still does the same with the new code. I should point out that if I take the "Response.Redirect()" out of the catch it works as I would think it should. Anyway, in the code below please tell me where I am wrong to think that this code
should redirect to "www.microsoft.com"?
<script runat="server">
Sub Page_Load
Dim intNumber As Integer
intNumber = 0
Try
If intNumber <> 0 Then
Response.Redirect( "http://www.sqlteam.com" )
Else
Response.Redirect( "http://www.microsoft.com" )
End If
Catch objEx As Exception
Response.Redirect( "http://www.asp.net" )
Finally
Response.Write( " Finally!" )
End Try
End Sub
</script>
JB
John Belthoff
Dodge, Duck, Dip, Dive & Dodge
If a man can dodge a wrench, he can dodge a ball!
JBelthoff
Member
553 Points
135 Posts
Re: Can some explain?
Jul 30, 2003 04:24 PM|LINK
<script runat="server"> Sub Page_Load Dim intNumber As Integer intNumber = 0 Try If intNumber <> 0 Then Response.Redirect( "http://www.sqlteam.com" ) Else Response.Redirect( "http://www.microsoft.com" ) End If Catch objEx As Exception Response.Redirect( "http://www.asp.net" ) Finally Response.Write( " Finally!" ) End Try End Sub </script>JBDodge, Duck, Dip, Dive & Dodge
If a man can dodge a wrench, he can dodge a ball!