I have an asp .net application where a user can click a button to
retrieve certain data.
The structure of the onClick handler is as follows:
Protected Sub button_click(blah blah)
Try
run some queries
call FindSomeData()
display confirmation message
Catch ex Ass Exception
display error 1
End Try
End Sub
Private Sub FindSomeData(ByVal key as integer, ByRef returnVal As
String, ByRef returnKey As Int)
Try
run a query
massage the data
Catch ex Ass Exception
display error 2
End Try
End Sub
If an exception were raised in FindSomeData, I would except the "display
error 2" to execute and the page to stop executing. However, what
happens is that "display error 2" is executed, but control returns to
the onclick sub and the confirmation message is also displayed..
Is this expected functionaility? How can i get the page to display error
2 and then stop execution?
Thanks in advance.
Bijoy
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!