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.

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

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

<asp:MultiHandleSliderExtender runat="server" ID="multiHandleSliderExtender1"
Length="500" >
<asp:MultiHandleSliderTarget ControlID="HandleSliderTarget1" />
<asp:MultiHandleSliderTarget ControlID="HandleSliderTarget2" />

<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"

<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" />

With this simple code it is possible to see page here

Thank, Sergey