Showing posts with label ASP.NET JavaScript Message Box. Show all posts
Showing posts with label ASP.NET JavaScript Message Box. Show all posts

Sunday, December 12, 2010

Message Box in ASP.NET using JavaScript

C# ASP.NET doesn't directly support Message Boxes inherently. However you can emulate this using embedded javaScript. See below:



    private void MessageBox(string message)
    {
        if (!string.IsNullOrEmpty(message))
        {
            Response.Write
         ("<script type=\"text/javascript\" language=\"javascript\">");
            Response.Write("alert('" + message + "');");
            Response.Write("</script>");
        }
    }

Generating "Always On Top" NSWindow in macOS across all detected displays

Also: Using UIKit & Cocoa Frameworks using Objective-C In m acOS or OS X , written in either Objective-C or Swift  Langues, you m...