Hey! Thanks for your reply! I have solved the problem :)
I created a function with return JSON but before it returns it it calls a subroutine:
Function testFunction() As JsonResult
System.Threading.ThreadPool.QueueUserWorkItem(AddressOf DoAsyncWork)
Return Json("success", JsonRequestBehavior.AllowGet)
End Function
Protected Sub DoAsyncWork()
Do some work
End Sub
Anyway, thanks for your help
Cheers!