问题描述
假设你的数据库如下所示。
表
产品暂无价格产品名称
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)
推荐答案
这篇关于使用asp.net数据表中的min和max绑定jQuery UI滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!