__doPostBack() function isn't working (asp.net)
问题 I am trying to trigger button event from the JS code. But doPostBack in JS function reg() is not directing to the c# code. Please tell me what's wrong. Here is my code: <script> function reg() { var name = document.getElementById('name').value; var id = document.getElementById('cnic').value; var age = document.getElementById('age').value; var ph = document.getElementById('phone').value; var pas = document.getElementById('pass').value; if (id == '' || pas == '' || age == '' || ph == '' || pas