Click here to Skip to main content
15,891,375 members
Articles / Web Development / HTML

Simple MessageBox functionality in ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.65/5 (60 votes)
30 Nov 2016CPOL2 min read 578.5K   10.4K   135  
An article describing how to offer simple MessageBox functionality in ASP.NET
<%@ Page language="c#" Codebehind="MessageBoxTest.aspx.cs" AutoEventWireup="false" Inherits="LeeGunn.Web.UI.MessageBox.MessageBoxTest" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
   <head>
      <title>WebForm1</title>
      <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
      <meta name="CODE_LANGUAGE" Content="C#">
      <meta name="vs_defaultClientScript" content="JavaScript">
      <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
   </head>
   <body MS_POSITIONING="GridLayout">
      <form id="frmMain" method="post" runat="server">
      If you check the source, the JavaScript will be right at the bottom of the page, after the closing HTML tag. This means that your
      page should be fully rendered before the JS alerts pop up.
      </form>
   </body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions