hiii
please help for how to create a javascript alert message box with ok asp.net button.because when i click ok button i need to check some condition from database so i need ok button of asp.net control...
Thanks in advance
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
Shubham KumarRank #621 · 3.8K reputationPosted Feb 18, 2016, 8:08 PM EST
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert", "alert('" + sMessage + "');", false);Response.Write("alert('Hello');"); and its not possible to getting click event of javacript ok button if you do so you have to handle on script 2 is make user control in asp.net with ajax model popup extender (in that you could get the ok button click event)Chandu KumawatRank #1,449 · 1.1K reputationPosted Feb 18, 2016, 8:18 PM EST