471,347 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Compiler does not recongnize page controls.

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)

Dec 15 '05 #1
2 992
i dont like your vulgar lenguage, please stop posting this kind of
things

Dec 15 '05 #2
sorry language:P

Dec 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by suzy | last post: by
9 posts views Thread by JTrigger | last post: by
10 posts views Thread by Sacha Korell | last post: by
5 posts views Thread by rawCoder | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.