Here is the Web control HTML:
<%@ Control Language="
vb" AutoEventWireup="false" Codebehind="Error.ascx.
vb" Inherits="Project1.ErrorControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<P>
<TABLE id="tblError" cellSpacing="0" cellPadding="0" border="0">
<TR>
<TD class="PageTitle" align="center">An Error Has Occurred</TD>
</TR>
<TR>
<TD><BR>
</TD>
</TR>
<TR>
<TD>An error has occurred in the application. The following information
contains the error that has occurred:</TD>
</TR>
<TR>
<TD><BR>
</TD>
</TR>
<TR>
<TD>
<asp:Label id="lblMessage" runat="server" CssClass="Error"></asp:Label></TD>
</TR>
</TABLE>
</P>
Here is the code behind page:
Public Class ErrorControl
Inherits System.Web.UI.UserControl
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents lblMessage As System.Web.UI.WebControls.Label
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private m_strMessage As String
Public Property Message() As String
Get
Return m_strMessage
End Get
Set(ByVal Value As String)
m_strMessage = Value
End Set
End Property
End Class
Thanks.