如果用户先前添加的值,如何限制列表框的值 [英] How to restrict the values of listbox if they previously added by user

查看:69
本文介绍了如果用户先前添加的值,如何限制列表框的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,在该页面上有一个供选择用户使用的下拉列表和两个列表框,其中第一个列表框包含产品,在第二个列表框中,我们从listbox2添加产品.当我单击提交按钮时,选定的产品和用户ID插入表中.但是我希望当我为同一用户输入产品时,该表中已经添加的产品不会显示给该用户.

I have a page on which a dropdown for the selecting user and two list box in which 1st listbox contain products and in the second we add the products from listbox2 . When i click on the submit button the product selected and the user id inserted in the table. But i want that when i entered the product for the same user then the product which already added in that table are not shown to the user

推荐答案

您是否尝试过重新填充列表框,方法是从表中检索数据.我不确定您是否已经尝试过并且有任何问题.如果是这样,请告诉我们问题.
Have you tried repopulating the listbox, by retrieving data from table. I am not sure if you tried this already and have any issues. If so tell us the issues.


这篇关于如果用户先前添加的值,如何限制列表框的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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