mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* TemplateControlCompiler.cs: using a regexp to check whether an expression is a Bind one. Fixes bug #493639 2009-04-16 Marek Habersack <[email protected]> * Makefile (TEST_RESOURCE_FILES): added Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx 2009-04-16 Marek Habersack <[email protected]> * TemplateControlCompilerTest.cs: added test for bug #493639 svn path=/trunk/mcs/; revision=131874
24 lines
739 B
Plaintext
24 lines
739 B
Plaintext
<%@ Page Language="C#" %>
|
|
<script runat="server">
|
|
protected void Page_Load (object sender, EventArgs a)
|
|
{
|
|
grid.DataSource = new string[] {"one"};
|
|
grid.DataBind ();
|
|
}
|
|
|
|
protected string BindSomeText(object someObj) { return "Test"; }
|
|
</script>
|
|
<html><head><title>Bug 493639</title></head>
|
|
<body>
|
|
<form runat="server">
|
|
<asp:GridView runat="server" id="grid" AutoGenerateColumns="false">
|
|
<columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate><%= MonoTests.stand_alone.WebHarness.HtmlDiff.BEGIN_TAG %><asp:Label runat="server" ID="lblTest" Text="<%# BindSomeText(Container.DataItem) %>" /><%= MonoTests.stand_alone.WebHarness.HtmlDiff.END_TAG %></ItemTemplate>
|
|
</asp:TemplateField>
|
|
</columns>
|
|
</asp:GridView>
|
|
</form>
|
|
</body>
|
|
</html>
|