[Mono-dev] Controls inside an Ajax UpdatePanel

Igor Zelmanovich igorz at mainsoft.com
Mon Aug 20 04:24:45 EDT 2007


There is the bug in aspx parser.

The parser does not consider TemplateInstanceAttribute.

ContentTemplate property of UpdatePanel has  [TemplateInstanceAttribute
(TemplateInstance.Single)]

According MSDN it suppose to allow you to reference controls that are
contained within the template.

Could you file a bug in bugzila?

Igor.

From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Jens
Wurster
Sent: Sunday, August 19, 2007 9:31 PM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] Controls inside an Ajax UpdatePanel

Hello,

I have problems with the Ajax UpdatePanel. With every control inside an
UpdatePanel, I get a Compilation Error like this:

/var/www/Default.aspx.cs(15,9) : error CS0103: The name `Label1' does
not exist in the current context

I think this is bug. Can somebody make a quick fix or tell me what is
wrong?!

Thanks.

Regards
Jens

PS: I attached a test case.



More information about the Mono-devel-list mailing list