ICallbackEventHandler - How to invoke a Server side code from client side script without postback in ASP.NET?
I had received above questions from my team mate, hence I thought exploring and writing a post about Call back Event .for our reference. Now, the actual requirement is a set in the business logic (ASP.NET code) should be executed without page post back from server-side scripting. So, how client callbacks can be achieved within Server-side scripts? Yes, the answer is using ICallbackEventHandler interface with ASP.NET and JQuery scripts. Let’s understand the technique with code snippets, a simple example is taken here for explanation for ease of learning. 1. Let’s start with Server side code changes, The ICallbackEventHandler interface is inherited to implement the RaiseCallbackEvent and GetCallbackResult methods. public partial class _Default : System.Web.UI. Page , System.Web.UI. ICallbackEventHandler {} ========================================================= Advertisement: Choosing .NET Core Worker Services OR Windows Service...