Hello,
I have the following markup in a user control:
<tel:RadCodeBlock id="rcbFormScript" runat="server">
<script language="javascript">
function txtSubject_Blur(sender, e) {
//Code here
}
</script>
</tel:RadCodeBlock>
<tel:RadTextBox ...>
<ClientEvents OnBlur="txtSubject_Blur" />
</tel:RadTextBox>
The user control is not dynamically loaded, but it's not present on page load. When the UC is present (in response to an RadAjaxManager AJAX update), I get the error txtSubject_Blur is undefined.
Why is that? How can I correct the problem?
Thanks.
I have the following markup in a user control:
<tel:RadCodeBlock id="rcbFormScript" runat="server">
<script language="javascript">
function txtSubject_Blur(sender, e) {
//Code here
}
</script>
</tel:RadCodeBlock>
<tel:RadTextBox ...>
<ClientEvents OnBlur="txtSubject_Blur" />
</tel:RadTextBox>
The user control is not dynamically loaded, but it's not present on page load. When the UC is present (in response to an RadAjaxManager AJAX update), I get the error txtSubject_Blur is undefined.
Why is that? How can I correct the problem?
Thanks.