Compiler does not recongnize page controls.

  • Thread starter Thread starter chopa
  • Start date Start date
C

chopa

description:

I have AbcFile.cs
namespace Abcns{
public partial class AbcFile : System.Web.UI.UserControl
{
properties...
methods..
}
}

and AbcFile.ascx
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="~/App_Code/AbcFile.cs" Inherits="Abcns.AbcFile" %>
.... and my controls...
<asp:Panel ID="pnlMensaje" runat="server" Height="10%"
Style="left: 1%; width: 100%;
position: absolute; top: 90%; height: 10%" Width="100%">
<asp:Label ID="lblError" runat="server" ForeColor="Red"
Style="position:
static"> </asp:Label>
</asp:Panel>..
....
and the problem!!!!

When i type this.lblError.Text... everything it's ok... The code window
Autocomplete my control's name and properties... but when i build
compiler says:

Acbns.AbcFile does not contain a definition for 'lblError'
wtfk???

if somebody can helpme i'll be so greatfull...

(and excuse my english... if that seems like english hohoho)
 
Back
Top