You can just place this line in a JavaScript function:
__doPostBack('btnSubmit','OnClick');
Or do something like this:
$('#btnSubmit').trigger('click');
More Related Contents:
- Call ASP.NET function from JavaScript?
- Accessing Asp.net controls using jquery (all options)
- How to call a C# function from JavaScript?
- jQuery returning “parsererror” for ajax request
- force browsers to get latest js and css files in asp.net application
- Passing dynamic javascript values using Url.action()
- Function not defined error while using asp.net ajax
- Uploading File using Ajax in Asp.Net Core
- ASP.NET Parse DateTime result from ajax call to javascript date
- Path separators are missing
- How to do the same in JavaScript? [closed]
- Calling JavaScript Function From CodeBehind
- Ajax request returns 200 OK, but an error event is fired instead of success
- ASP.NET postback with JavaScript
- how to use Protractor on non angularjs website?
- How can I use a C++ library from node.js?
- ScriptManager.RegisterStartupScript code not working – why?
- What is the best way to download file from server
- How to create a session using JavaScript?
- IE9 JavaScript error: SCRIPT5007: Unable to get value of the property ‘ui’: object is null or undefined
- CORS: credentials mode is ‘include’
- How to get asp.net client id at external javascript file
- Check if a popup window is closed
- Hook a javascript event to page load
- How to detect IE 11 with javascript in Asp.net
- ASP.NET jQuery Ajax Calling Code-Behind Method
- Document.Ready() is not working after PostBack
- Compile JavaScript to Native Code with V8
- Add multiple window.onload events
- JavaScript: Alert.Show(message) From ASP.NET Code-behind