100场形式是否有利于表现? [英] Is 100 fields form is good for performance?

查看:69
本文介绍了100场形式是否有利于表现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站有大约100个字段,这对于性能有好处,并且使用了大约17个表,所以给我建议这个好吗?这是客户的要求....... :)

I have website which have around 100 fields is this good for performace and around 17 tables used so give me advice is this good? this is client's requirement....... :)

推荐答案

绝对不是。为什么你在一张表格上有这么多字段?



谁将填写所有细节?用户会感到恼火。



而是将它们分成多种形式。将 Next Previous 按钮添加到所有表单并相应地加载页面。



您也可以使用向导控制 -

1. 如何在asp.net中使用向导控件 [ ^ ]。

2. [MSDN]如何在asp.net中使用向导控制 [ ^ ]。

3. ASP.NET 2.0向导控件 [ ^ ]。

4. [MSDN]演练:高级使用ASP.NET向导控件 [ ^ ]。
Definitely not. Why are you having so many fields on a single form?

Who is going to fill all the details? The user will get annoyed.

Instead divide them into multiple forms. Give Next and Previous buttons to all the forms and load the pages accordingly.

You can also use Wizard control -
1. How to use Wizard control in asp.net[^].
2. [MSDN] How to use Wizard control in asp.net[^].
3. ASP.NET 2.0 Wizard Control[^].
4. [MSDN] Walkthrough: Advanced Use of the ASP.NET Wizard Control[^].


客户应考虑的另一个方面:会话。

在Web应用程序中,如果您希望用户在单个表单(即网页)上输入数百个数据,那么在此期间可能不会有回发,并且用户很可能会离开工作站喝咖啡或其他原因。为避免会话超时,您必须提供极大的会话窗口。这是一个安全漏洞,在大并发用户数的情况下会影响性能。如果客户端连接因任何原因而中断或浏览器崩溃,则所有数据都将丢失。这非常烦人。通过分组/分页输入,您可以存储临时数据,并在会话因任何原因中断时将其还原。
An other aspect the client should consider: sessions.
In a web application if you want the user to enter hundreds of data on a single form (which is a web page), there will be probably no postback during that, and the user will most likely leave the workstation to drink a coffee or other reasons. To avoid session timeout you will have to give extremely large session window. And that is a security hole, and can affect performance in case of large concurrent user number. If the client connection is broken for any reason or the browser crashes, all data will be lost. Which is extremely annoying. With grouped/paged input you have the possibility to store interim data and give it back if the session is interrupted for any reason.


根据Tadit的建议,这是不可取的。即便如此,如果客户坚持,那么尝试根据相关性和功能将它们分组到不同的标签下。
As advised by Tadit it’s not advisable. Even then if the client insists then try to group them under different tabs based on relevance and functionality.


这篇关于100场形式是否有利于表现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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