使用asp.net数据表中的min和max绑定jQuery UI滑块 [英] Bind jQuery UI slider with min and max from the asp.net datatable

查看:77
本文介绍了使用asp.net数据表中的min和max绑定jQuery UI滑块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





假设你的数据库如下所示。







产品暂无价格产品名称



1 1230 a



2 1351 b



3 1861 c



4 1751 d



我的要求是什么:当我输入一个新产品时,他的工资应该在db.means中的最低和最高价格之间,它将在1230到1861之间。



我不想输入任何价值低于1230且超过1861的产品。



因为这个原因我我正在使用slider.so用户将被绑定选择一个介于db的max和min之间的价格而不是给他一个文本框来输入值。



http://postimg.org/image/t1xt6yulx/







1230 * ------- | -------------- * 1861 1351(文本框哪个将显示滑块手柄位置)

Hi,

suppose ur db is like below.

Table

product no price product name

1 1230 a

2 1351 b

3 1861 c

4 1751 d

What my requirement is :when I will enter a new product his salary should be between the min and max price that is present in the db.means it will be between 1230 and 1861.

I dont want to enter any product which value is less than 1230 and more than 1861.

For that reason i am using the slider.so that the user will be bound to select a price which will be between the db's max and min instead of giving him a textbox to enter the value.

http://postimg.org/image/t1xt6yulx/



1230 *-------|--------------* 1861 1351(textbox which will show the slider handle posion)

推荐答案

参考 - 使用jQuery Slider插件和jQuery AJAX在ASP.Net中实现价格范围滑块 [ ^ ]。



尝试了解范围滑块如何与数据库配合使用。
Refer - Implement Price Range Slider in ASP.Net using jQuery Slider plugin and jQuery AJAX[^].

Try to learn how range slider works with database.


这篇关于使用asp.net数据表中的min和max绑定jQuery UI滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆