从多项选择加载输入

发布于 2024-07-19 04:45:25 字数 276 浏览 10 评论 0原文

嗨,我有一个任务 用于选择输入类型的下拉列表 选择是

  • 文本框
  • 日期时间
  • 数字

,在选择其中一种类型时,我必须打开选定的输入(例如,如果用户选择日期时间,我必须打开日期时间输入)

对于最适合

  1. 使用 aspview 的此任务(每个输入类型一个视图)
  2. 对于每个用户控件,因此当用户选择时 在运行时加载用户控件的类型

或者您有更好的想法吗?

Hi I have a task as that
a dropdown list to choose an input type
selections are

  • textbox
  • datetime
  • number

while choosing one of those types, I have to open the selected input(for example if user chose datetime I have to open a datetime input)

For this task which is most suitable

  1. using aspview(each input type one view)
  2. for each one a usercontrol so when user select
    a type loading it's usercontrol at runtime

or do you have any better ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦萦几度 2024-07-26 04:45:25

另一个想法...

您可以将每个控件封装在 div 中,并使用 javascript 将每个控件的显示从无更改为有内容。

Another idea...

You coulde encapsulate each control in a div and use javascript to change the display of each from none to something.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文