The page worked fine by itself.. But once I made it a .ascx that is part of a .aspx that is part of a master page I get the error below (when I uncomment that line)..
that radscriptmanager is there in the masterpage
<
telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True"
EnableScriptCombine="False" CompositeScript-ScriptMode="Auto" ScriptMode="Auto"
AsyncPostBackTimeout="360000">
<Scripts>
<asp:ScriptReference Path="~/Shared/script/AjaxLibrary/MicrosoftAjax.js" />
<asp:ScriptReference Path="~/Shared/script/AjaxLibrary/MicrosoftAjaxCore.js" />
<asp:ScriptReference Path="~/Shared/script/jPrototypes.js" />
</Scripts>
<CdnSettings TelerikCdn="Disabled" />
</telerik:RadScriptManager>
but I get this error below.. any ideas? (I should be able to work aroud it but just wondering what is so special about assigning a value to the NumericTextBox.ID)
Microsoft JScript runtime error: 'undefined' is null or not an object
{
var a=this;b.UI.Control.initializeBase(a);a._element=c;c.control=a;var d=a.get_role();d&&c.setAttribute("role",d)}
////Current Amount Hope6
TableCell tcCurrentAmountHope6 = new TableCell();
RadNumericTextBox tbCurrentAmountHope6 = new RadNumericTextBox();
tbCurrentAmountHope6.Type =
NumericType.Currency;
//tbCurrentAmountHope6.ID = "tbCurrentAmountHope6" + level1.Level1 + cc.ftaskId;
tbCurrentAmountHope6.Attributes[
"TaskId"] = cc.ftaskId.ToString();
tbCurrentAmountHope6.Attributes[
"FundType"] = "H6";
tbCurrentAmountHope6.Text = cc.H6ExpCQ.ToString();
tbCurrentAmountHope6.Visible = cc.H6Uses.ToString() ==
"0.00" ? false : true;
tcCurrentAmountHope6.Controls.Add(tbCurrentAmountHope6);
trItem3.Controls.Add(tcCurrentAmountHope6);