<%@ Control Language="VB" AutoEventWireup="true" CodeFile="messagebox.ascx.vb" Inherits="messagebox" %> <asp:Literal ID="Literal1" runat="server" Text="messagebox"></asp:Literal>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Literal1.Visible = False Literal1.Text = "" End Sub Public Sub show(ByVal msg As String) Literal1.Text = "<div style='width=1px;height=1px' onresize=\"this.style.display='none';alert('" + msg + "');\"/>" + "<script language='javascript'> alert('" + msg + "');</script>"; End Sub
Literal1.Visible = False Literal1.Text = ""
Literal1.Text="<div style='width=1px;height=1px' onresize=\"this.style.display='none';alert('" + msg + "');\"/>" + "<script language='javascript'> alert('" + msg + "');</script>";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)