Call Server Side Method without postback
Here i am to going explain little bit about how to call a Severside method without postbacking page, It is very simple learn and use. First we need to implement the ICallbackEventHandler interface to your code and also the two methods in that RaiseCallbackEvent and GetCallbackResult . Here is the sample code for that.
Partial Public Class WebForm3ClientCall
Inherits System.Web.UI.Page
Implements System.Web.UI.ICallbackEventHandler
Protected returnValue As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim cbReference As String = Page.ClientScript.GetCallbackEventReference(Me, "arg", "ReceiveServerData", "context")
Dim callbackScript As String = ""
callbackScript = "function CallServer(arg, context)" + "{ " + cbReference + ";}"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "CallServer", callbackScript, True)
End Sub
Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements ICallbackEventHandler.RaiseCallbackEvent
If Not IsNumeric(eventArgument) Then
‘Call Buisness layer to get the Details here is sample demo code only you need your own logic to get some datas
Dim ObjPer As New Personal

Join the conversation! Your thoughts help the community grow.