Slider failure, bag

May 9, 2010 at 11:36 PM

At the first loading of page and pressing of the button the handle moves. The handle moves by means of the program.

After have moved the handle by means of a mouse the button does not work. The program does not work.

Why???
________________________________
<script runat="server">
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me.HandleSliderTarget1.Text = Rnd() * 100
End Sub
</script>
...
...
<div>



<asp:TextBox ID="slider1" runat="server" Style="display:none;" AutoPostBack="True" />

<asp:MultiHandleSliderExtender runat="server" ID="multiHandleSliderExtender1"
BehaviorID="multiHandleSliderExtender1"
TargetControlID="slider1"
Minimum="0"
Maximum="100"
Length="500" >
<MultiHandleSliderTargets>
<asp:MultiHandleSliderTarget ControlID="HandleSliderTarget1" />
<asp:MultiHandleSliderTarget ControlID="HandleSliderTarget2" />
</MultiHandleSliderTargets>
</asp:MultiHandleSliderExtender>

<br /> <br /> <br />

<asp:Label ID="Label1" runat="server" Text="Label" CssClass="jjj">Left Handle Value</asp:Label>

<asp:TextBox ID="HandleSliderTarget1" runat="server"
Visible="true" Width="62px" >0</asp:TextBox>


<asp:Label ID="Label2" runat="server" Text=" Right Handle Value" Width="200px"
CssClass="style1"></asp:Label>

<asp:TextBox ID="HandleSliderTarget2" runat="server"
Visible="true" Width="62px">100</asp:TextBox>

<br /> <br /> <br />

<asp:Button ID="Button1" runat="server" Text="programmatically move the handle"
Height="33px" onclick="Button1_Click" Width="218px" />
</div>
__________________________________________________________________________________________________________________

With this simple code it is possible to see page here

http://dneprdom.dp.ua/slider.aspx

Thank, Sergey