i want a javascript confirm message box from aspx.cs page. In some button click function i want to write the code not in the Page_Load.Want the confirmation box during execution so that if user clicks on the OK it should procced further and for Cancle clicks it should come out the server side with out executing the rest of the code.please find the code where i want this functionalityprotected void cmdSolve_ServerClick(object sender, System.EventArgs e){string name = dtAttachedFiles.Rows[i]["FileName"].ToString().ToUpper();if (name.Contains("BACKOUT")){ string ext = Path.GetExtension(name); if (ext != ".PDF") {Response.Write(<script language=Javascript>confirm((\"There is no Backout Plan attached.\");</script>); }//Rest of the code }in this point of execution i want that pop up. On OK click it will execute the rest of the code and Cancel click it will not execute the rest of the code... 解决方案 这篇关于来自aspx.cs页面的确认警报框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-29 12:11
查看更多