How to submit ASP.NET with JavaScript after custom validation

前端 未结 3 1921
一生所求
一生所求 2020-12-16 02:16

I need to fire some custom JavaScript validation and then submit my ASP.NET using JavaScript.

How do I submit the form using JavaScript?

3条回答
  •  时光取名叫无心
    2020-12-16 02:55

    If you want to post back, you can use __doPostBack() that ASP.NET put into the

    . Take a look at this link. If you want to submit another form just call .submit() on the form element.

提交回复
热议问题