Compiler does not recongnize page controls.

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top