I have been given the task to re-code an old VB6 page. This page exports data from our database and imports it into another. While the export/import is happening, I need to offer the user confirm boxes. The context and results of these confirm boxes all depend on server-side validation. In the old code, the author simply did:
If MsgBox(Msg, vbOKCancel) = vbOK Then GoTo Function1 Else GoTo Function2 End If
Yes, those are GoTos, don't remind. This code is rough. Anyway, how in the heck can I do this in .NET with c# code behind?