在开发要显示的ASP.NET 2.0 Web应用程序时 [英] While developing ASP.NET 2.0 web application you want to display

查看:69
本文介绍了在开发要显示的ASP.NET 2.0 Web应用程序时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发ASP.NET 2.0 Web应用程序时,您希望在主/详细方案中显示零件列表,在该方案中,用户可以使用占用网页上最少空间的列表来选择零件号.选择零件后,DetailsView控件将显示有关零件的所有信息,并允许用户编辑零件.哪个Web控件是显示零件号列表的最佳选择

While developing ASP.NET 2.0 web application you want to display a list of parts in a master/detail scenario where the user can select a part number using a list that takes a minimum amount of space on the Web page. When the part is selected, a DetailsView control displays all the information about the part and allows the user to edit the part. Which Web control is the best choice to display the part number list
for this scenario?

推荐答案

如果您想减轻页面亮度,我建议使用下拉菜单.
填写页面加载下拉列表.

一个问题是,如果用户通过向下箭头非常快地更改下拉菜单项,则页面将加载,并且在发生回发时,下拉菜单项将消失.

为了应付这种情况,
使用Ajax加载详细信息.在这种情况下,您选择的项目不会丢失.
而且,您的页面不会刷新.

希望这会有所帮助.
欢呼
If you want to make your page lighter, I would rather suggest to use dropdown.
Fill the dropdown on page load.

One problem is that if user change the items of the drop down very quickly through down arrow, the page will load and the selected item of the drop down vanishes as the postback occurs.

To cater this situation,
Use Ajax to load the detail items. In that case, your selected item will not lost.
Moreover, you page will not be refreshed.

Hope this helps.
cheers


这篇关于在开发要显示的ASP.NET 2.0 Web应用程序时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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