You create the following Web user control named ErrorMessages.
<%@ Control Language=”C#” AutoEventWireup=”true”
CodeFile=”ErrorMessages.ascx.cs”
Inherits=”ErrorMessages” %>
<script language=”C#” runat=”server”>
protected string m_Text = “This is a default message!”;
public string Text {
get {
return m_Text;
}
set {
m_Text = value;
}
}
</script>
The ErrorMessages control uses a public property that displays the error message. You need to change the default error message property on the Web Form in which the control is implemented.
Which code segment should you use?
A.
<fabrikam:Message id=”MyMessage” MyMessage-Text=”This is a custom message!” runat=”server”/>
B.
<fabrikam:Message id=”MyMessage” MessageText=”This is a custom message!” runat=”server”/>
C.
<fabrikam:Message id=”MyMessage” Text=”This is a custom message!” runat=”server”/>
D.
<fabrikam:Message id=”MyMessage” Message_Text=”This is a custom message!” runat=”server”/>