Say I have the following code:
What happens to dt and the current thread execution?VB Code:
Dim dt As New DataTable 'code to populate datatable If dt.Rows.Count = 0 Then Response.Redirect("NoRecords.aspx") End If
Say I did:
And place a break point on the Dim Woof line, then when u run the code it's clear that the Dim Woof line will NEVER get executed.VB Code:
If dt.Rows.Count = 0 Then Response.Redirect("NoRecords.aspx") Dim Woof As Integer = 67 End If
This goes against all other synchronous and asynchronous calls, which will always return...someone will now ocme up with an example to go against what I said, but you know what I mean.
So...what is actually happening here on the Redirect command?
Does it start a new thread? If so, what happens to the old one? Is it left to the GAC to clear up?
Woka




Reply With Quote