I'm afraid I have been Googling this, but can't find an answer that I understand, or can use.
In Javascript, you can run a function and set a callback function which it calls after the first function has run:
function doThis(callBack){
// do things
// do things
if(callBack){
callBack();
}
}
Call this by: doThis(function () { alert("done") });
So after it's finished doing things it calls an alert to tell you it's done.
But how do you do the same server-side in VB.NET?
Just create a method that takes an
Action
delegate as parameter:and you can call it like