SliderExtender

来源:互联网 发布:windows7系统优化软件 编辑:程序博客网 时间:2024/06/05 11:04

 <html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SliderExtender</title>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align:center">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <br />   
    <asp:TextBox ID="Slider1_BoundControl" runat="server" Width="30" /><br />
    <asp:TextBox ID="Slider1" runat="server" />
    <br />
    <br />
    <asp:TextBox ID="Slider2" runat="server" AutoPostBack="true" Text="0" />
    <asp:Label ID="Slider2_BoundControl" runat="server" /><br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
            <ContentTemplate>
                <asp:Label ID="lblUpdateDate" runat="server" style="font-size:80%;" Text="&nbsp;" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Slider2" EventName="TextChanged" />
            </Triggers>
        </asp:UpdatePanel>
    <br />
<cc1:SliderExtender ID="SliderExtender1" runat="server"
        BehaviorID="Slider1"
        TargetControlID="Slider1"
        BoundControlID="Slider1_BoundControl"
        Orientation="Vertical"
        EnableHandleAnimation="true">
</cc1:SliderExtender>

<cc1:SliderExtender ID="SliderExtender2" runat="server"
        BehaviorID="Slider2"
        TargetControlID="Slider2"
        Minimum="-100"
        Maximum="100"
        BoundControlID="Slider2_BoundControl"
        Steps="5">
</cc1:SliderExtender>     

     </div>                              
</form>  
</body>
</html>

原创粉丝点击