简体   繁体   中英

Alert display on top of Modal Popup asp.net

I'm wondering how, if possible, to display an alertbox over a modal pop. I'm using the modal popup extender to display a form which the user fills out. On the form there are fields that the user must fill out, if they don't fill out a field and click submit then I want to display an alert box. As it is right now, I can't get the alertbox to display at all while the modalpopup is still active. Here is the code for the alertbox I'm trying to use:

   Page.ClientScript.RegisterStartupScript(this.GetType(), "error", "alert('Please coomplete all of the required fields');", true);
 string Msg = "Your Message";
            Response.Write(@"<script language='javascript'>alert('" + Msg + " .');</script>");

It works fine for me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM