asp.net static method pop up dialog box implementation ideas
- 2020-05-26 08:08:52
- OfStack
Still don't say nonsense, go straight to code. For beginners... It's basically a little window that pops up JavaScript, which is basically a defined DIV
/// <summary>
/// The pop-up JavaScript A small window , It's actually defined 1 a DIV
/// </summary>
/// <param name="js"> Window information </param>
public static void Alert(string message)
{
message = "<div style='border:darkturquoise 1px solid; width:200px;color: blue; font-style: normal; font-family: Regular script _GB2312;height:auto; background-color: #f4f8ff;padding:15px 0px; text-align:center; font-size: 23px;left: 360px; position: absolute; top: 200px;'>" + message + "</div>";
HttpContext.Current.Response.Write(message);
}