M
markla
Hi,
Can someone help me understand why for the code below, when added as a
"FieldTemplate" in Dynamic Data, and rendered for a field, does not trigger
the "test" function and hence update the label control?
(CodeBehind is pretty much same as the original shipped ForeignKey_Edit
code, and an event in the codeBehind does not get fired either)
<%@ Control Language="C#" CodeBehind="ForeignKeyEntry_Edit.ascx.cs"
Inherits="Timing.Web.DD.ForeignKeyEntry_EditField" %>
<link href="~/Site.css" rel="stylesheet" type="text/css" />
<script runat="server">
protected void test(Object sender, EventArgs e)
{
Label1.Text = TextBox1.Text;
}
</script>
<asp:TextBox ID="TextBox1" runat="server" Width="20" CausesValidation="true"
OnTextChanged="test" >
</asp:TextBox>
<asp:Button ID="ButtonLookup" runat="server" Text="..." />
<asp:Label ID="Label1" runat="server" BackColor="Red" Width="40" />
Thanks,
+Mark
Can someone help me understand why for the code below, when added as a
"FieldTemplate" in Dynamic Data, and rendered for a field, does not trigger
the "test" function and hence update the label control?
(CodeBehind is pretty much same as the original shipped ForeignKey_Edit
code, and an event in the codeBehind does not get fired either)
<%@ Control Language="C#" CodeBehind="ForeignKeyEntry_Edit.ascx.cs"
Inherits="Timing.Web.DD.ForeignKeyEntry_EditField" %>
<link href="~/Site.css" rel="stylesheet" type="text/css" />
<script runat="server">
protected void test(Object sender, EventArgs e)
{
Label1.Text = TextBox1.Text;
}
</script>
<asp:TextBox ID="TextBox1" runat="server" Width="20" CausesValidation="true"
OnTextChanged="test" >
</asp:TextBox>
<asp:Button ID="ButtonLookup" runat="server" Text="..." />
<asp:Label ID="Label1" runat="server" BackColor="Red" Width="40" />
Thanks,
+Mark