Is there any way to call the click function from the c# application
Here's the code that set the function:
$('#connectbtn').unbind('click').attr('disabled', false);
$('#connectbtn').bind('click', function() {
//CODE TO BE EXECUTED
}).removeAttr('disabled');
try it,
ClientScript.RegisterStartupScript(this.GetType(), "DateTimeFromServer", string.Format(@"<script>
$(function () {{
$('#connectbtn').trigger('click','{0}');
}});
</script>", DateTime.Now));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.