Today I am going to describe how to call server side event from client side.
See the below aspx code;
This is test page :
You can see that, I have defined one server side button with onclick event.
Here, I have also defined aspx label and client side button.
I have used client side button event for calling the server side button event; where I have write test message in aspx label.
see below code for aspx code behind button event
protected void btnTest_Click(object sender, EventArgs e)
lblMessage.Text = "Test message";
Now how can we call this event from client side function; see the below client side funtion
var btnTest = document.getElementById("<%= btnTest.ClientID %>");
Hope this will help you !!….