How to Implement jQuery UI slider with ASP.NET

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Slider_Demo.aspx.cs" Inherits="Slider_Demo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">
    <link type="text/css" rel="Stylesheet" href="" />
    <script type="text/javascript" src="">
    <script type="text/javascript" src="">
    <script type="text/javascript">
        $(document).ready(function () {
                min: <%=MinValue%>,
                max: <%=MaxValue%>,
                step: <%=Step %>,
                slide: function (event, ui) {
    <form id="form1" runat="server">
        <div id="slider" style="width: 200px;">
        <br />
        <asp:TextBox ID="txtValue" runat="server"></asp:TextBox>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Slider_Demo : System.Web.UI.Page
    public const int MinValue = 0;
    public const int MaxValue = 100;
    public const int Step = 5;
    protected void Page_Load(object sender, EventArgs e)


No comments:

Post a Comment