有没有办法从c#application
调用click函数以下是设置功能的代码:
$('#connectbtn').unbind('click').attr('disabled', false);
$('#connectbtn').bind('click', function() {
//CODE TO BE EXECUTED
}).removeAttr('disabled');
答案 0 :(得分:0)
试试吧,
ClientScript.RegisterStartupScript(this.GetType(), "DateTimeFromServer", string.Format(@"<script>
$(function () {{
$('#connectbtn').trigger('click','{0}');
}});
</script>", DateTime.Now));