On Feb 25, 2:17*pm, wild...@noclient.net wrote:
> I have a Master page with property for ErrorMsgs. From my aspx pages I
> can set that property resulting in a popup.
>
> Whats the best way to have that same result from a user control. Say I
> get an error in my usercontrol and I want to trip that popup in the
> masterpage?
>
> Thanks for any help or information.
FYI.
On the pages I would add this below the directive:
<%@ MasterType VirtualPath="~/MyMaster.master" %>
But, I can't add that to the user control.
I can reference the master page from the user control with
Page.Master but my property (of the master) does not show up:
My property on the master looks like this:
Partial Class xxx
Inherits System.Web.UI.MasterPage
Public Property ErrorMsg() As String
Get
Return ErrorLabel.Text
End Get
Set(ByVal value As String)
ErrorLabel.Text = value
End Set
End Property
But Page.Master.ErrorMsg is say it's not a member of
|