[Mono-bugs] [Bug 493639] New: Invalid "Bind invocation wasn't formatted properly" in TemplateControlCompiler
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 9 11:13:09 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=493639
Summary: Invalid "Bind invocation wasn't formatted properly" in
TemplateControlCompiler
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: x86
OS/Version: RHEL 5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: murray at veisoftware.com
QAContact: mono-bugs at lists.ximian.com
Found By: Community User
Description of Problem:
After upgrading from 2.0 to 2.4, GridView template fields that are bound to
functions starting with the word "Bind" cause a "Bind invocation wasn't
formatted properly" exception to be raised by TemplateControlCompiler.
Removing the word "Bind" from the function name allows it to work properly.
Steps to reproduce the problem:
1. Create a new ASP.NET page.
2. Add a function to the page's code file:
protected string BindSomeText(object someObj) { return "Test"; }
3. Add a GridView control to the page with one template field:
<asp:TemplateField>
<ItemTemplate>
<asp:Label runat="server" ID="lblTest" Text="<%#
BindSomeText(Container.DataItem) %>" />
</ItemTemplate>
</asp:TemplateField>
4. Bind the GridView to some data source.
Actual Results:
The page does not render. An exception (System.Web.HttpParseException: Bind
invocation wasn't formatted properly.) is raised at
TemplateControlCompiler.cs:498 (in CreateEvalInvokeExpression). A stack trace
can be provided if needed.
Expected Results:
A grid with one column of the word "Test."
How often does this happen?
Every time.
Additional Information:
Removing the word "Bind" from the function name allows this to work. Also,
this problem did not happen in 2.0.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list