here the event not firing i have tried with so many buttons but not firing can u please tell me solution
here the event not firing i have tried with so many buttons but not firing can u please tell me solution
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Dec 28, 2024, 2:03 AM EST
Hello Nagaveni,
Could you please check below,
Make sure your code behid file has below method and its in correct format,
protected void Update_employee_ServerClick(object sender, EventArgs e) { // Your server-side logic here }Remove
autopostback="true"as it is unnecessary here on button.Update function RefreshParent() { if (window.opener != null && !window.opener.closed) { window.opener.location.reload(); } } window.onbeforeunload = RefreshParent; function license_check() { debugger; var emp_licen = document.getElementById("").value; var emp_desig = document.getElementById("").value; if (emp_desig === "Doctor") { if (emp_licen.startsWith("DHA-P-")) { if (emp_licen.length === 14) { if (isNaN(emp_licen.slice(6, 13))) { alert('Enter a valid license number'); return false; } else { return true; } } else { alert('As per DHA, the correct format is DHA-P-12345678 (8 Digits)'); return false; } } else { alert("Please enter license with prefix DHA-P-12345678 (8 Digits)"); return false; } } else { return true; } }Nagaveni Katari191 reputationPosted Dec 28, 2024, 2:13 AM EST
even not working