M
Monty
Hello,
[ASP.Net, VS2005] I have a label control in my master page like this:
<asp:Label ID=lblStatusMessage runat="server"></asp:Label>
When I reference the control in my code-behind I get this error
"Name 'lblStatusMessage' is not declared"
If I add a declaration for it at the top of my partial class like so:
Protected lblStatusMessage As System.Web.UI.WebControls.Label
then I get this error:
'lblStatusMessage' is already declared as 'Protected Dim WithEvents
lblStatusMessage As System.Web.UI.WebControls.Label' in this class.
MasterPage.master.vb
This happens even I drag a control into the masterpage from the toolbox. Any
ideas?? Thanks!
Monty
[ASP.Net, VS2005] I have a label control in my master page like this:
<asp:Label ID=lblStatusMessage runat="server"></asp:Label>
When I reference the control in my code-behind I get this error
"Name 'lblStatusMessage' is not declared"
If I add a declaration for it at the top of my partial class like so:
Protected lblStatusMessage As System.Web.UI.WebControls.Label
then I get this error:
'lblStatusMessage' is already declared as 'Protected Dim WithEvents
lblStatusMessage As System.Web.UI.WebControls.Label' in this class.
MasterPage.master.vb
This happens even I drag a control into the masterpage from the toolbox. Any
ideas?? Thanks!
Monty