[Solved] AJAX MultiHandleSliderExtender Error: Cannot set properties of null (setting Handle)

counterkin
 
on Feb 27, 2022 11:01 PM
495 Views

Hi,

I got the following error if I put MultiHandleSliderExtender in ChildPage. It's working fine if I put into a normal aspx page.

Uncaught TypeError: Cannot set properties of null (setting 'Handle')

MasterPage.master

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:ContentPlaceHolder id="body" runat="server">        
    </asp:ContentPlaceHolder>    
</form>
</body>
</html>

NotWorking.aspx (ChildPage)

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
<div style="padding: 100px;">
    <cc1:MultiHandleSliderExtender ID="mhse_year_range" runat="server" TargetControlID="txt_year_range"
        BehaviorID="multiHandleSliderTwo" Minimum="2000" Maximum="2022" Steps="22" Length="400">            
        <MultiHandleSliderTargets>
            <cc1:MultiHandleSliderTarget ControlID="txt_year_from" />
            <cc1:MultiHandleSliderTarget ControlID="txt_year_to"/>
        </MultiHandleSliderTargets>
    </cc1:MultiHandleSliderExtender>
    <br /><br />
    <asp:TextBox ID="txt_year_from" runat="server" Text="2000"></asp:TextBox>
    <asp:TextBox ID="txt_year_to" runat="server" Text="2022"></asp:TextBox>
    <asp:TextBox ID="txt_year_range" runat="server"></asp:TextBox>
</div>
</asp:Content>
Download FREE API for Word, Excel and PDF in ASP.Net: Download