Sign In
How to create a message box in an AVR ASP.NET web application 

Message boxes in a windows environment is a simple and easy way to code.  When you use message boxes in a web application it involves coding in javascript.  The javascript is used to run the message box on the client side. 

In the ASPX source you will need to add the following:

<%@ Page language="AVR" CodeFile="WebForm1.aspx.vr"
Inherits="AVR_ASPNETMsgBox.WebForm1" %>

<?xml version="1.0" encoding="utf-16"?>

<html xmlns="">



<meta name="GENERATOR" content="Microsoft Visual Studio 7.0" />

<meta name="CODE_LANGUAGE" content="AVR" />

<meta name="vs_defaultClientScript" content="JavaScript" />

<meta name="vs_targetSchema"
      content="" />



<form id="Form1" method="post" runat="server">

<asp:button id="Button1" style="Z-INDEX: 101; LEFT: 32px; POSITION: absolute;
                      TOP: 32px"
runat="server" text="Button" width="120px">




<asp:literal id="ltlAlert" runat="server" enableviewstate="False">





 In the AVR code

BegSr Button1_Click Access(*Private) Event(*this.Button1.Click)

     DclSrParm sender Type(*Object)

     DclSrParm e Type(System.EventArgs)

     DclFld Message Type(*String)

     // "AVR ASP.NET MessageBox Demo"


     Message = "AVR ASP.NET MessageBox Demo"

     ltlAlert.text = "alert('" + Message + "')"


Related Articles
Article Downloads
Message box, Web development, Examples
Article ID: 462 
Category: ASNA Visual RPG : Web Development 
Applies To: ASNA Visual RPG, Web Development 
Article Date: 5/14/2008