列表框选择应决定显示文本框 [英] List box selection should decide the text boxes display

查看:57
本文介绍了列表框选择应决定显示文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在使用ASP在Access表中插入一条记录,它工作正常。我有很多文本框,列表框来获取输入字段。



实际上对于所有插入案例我都不需要填写所有字段。

i需要限制用户输入取决于第一个列表框选项
i已经填充了列表框项目,只要用户想要先插入记录,用户就应该选择一个列表框项目,只要选择了一个项目文本框应保留在表单中,其他不需要的文本框可以消失或阻止agaist条目或任何可选的标记。



任何人都可以帮助me.this将发挥至关重要的作用。请

Hi,
I am inserting a record in Access table using ASP,it is working fine.i have so many text boxes,list boxes to get the input fields.


Actually for all the insert cases i don''t require all the fields to be filled.
i need to restrict the user input depend on the first list box seletion.


i have populated the list box items,as soon as user wants to insert a record first ,user should select a list box item,as soon as an item selected required text box should remain exist in the form other unwanted text boxes either disappear or blocked agaist entry or any marks to be put optional.



Any one can help me.this is going to play a vital role overall.please

推荐答案

hi,

这可以通过switch case语句来解决。根据第一个列表框的值隐藏你不需要的输入字段。


i没试过但是这个想法对你有用。

this can be solved with a switch case statement. based on the value of the first list box hide the input fields which you dont require.

i have not tried it but this idea can be useful to u.


我将尝试你的建议。


你也可以使用if条件来检查列表框,并根据选择决定所需的文本框。
u can also use the if condition to check the list box and decide the required textboxes based on the selection.


这篇关于列表框选择应决定显示文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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