简体   繁体   English

对于编辑和插入,DetailsView / FormView是否足够丰富?

[英]Are DetailsView /FormView enough rich for Edit and Insert?

I'm wondering are DetailsView/FormView and ObjectDataSource have enough capability for Inserting/Editing your records or not ? 我想知道DetailsView / FormView和ObjectDataSource是否有足够的能力来插入/编辑你的记录?

Or better ask you Do you prefer use them or make your form by your own ? 或者更好地问你是否更喜欢使用它们或者自己制作表格?

Because some times it's not easy to use them for complicated task , On the other hand when you have a lot of fields , that's over killing make your form by your own. 因为有时候将它们用于复杂的任务并不容易,另一方面,当你有很多字段时,过度杀戮会使你自己的形式。

No doubt you can use asp.net detailsview and formsview to edit, insert, display data. 毫无疑问,您可以使用asp.net detailsview和formsview来编辑,插入,显示数据。 This makes it easier and faster to play around your data, if you are handy with it. 如果您方便使用,这样可以更轻松,更快速地播放您的数据。 Otherwise you may stumble with some typical odds, of which almost all are answered and you can find them over Internet. 否则你可能会遇到一些典型的赔率,其中几乎所有赔率都可以回答,你可以通过互联网找到它们。 Conclusion: Once you get with formsview, detailsview they will be your favourite tools! 结论:一旦你获得了formview,详情查看它们将是你最喜欢的工具! That is what Microsoft wants of developers. 这就是微软想要的开发者。

Still there are some points to remember: if you have forms with lots of controls and you need them interact with each other, you need to consider playing around the straight ways of formview, detailsview. 仍有一些要点需要记住:如果你的表格有很多控件而且你需要彼此互动,你需要考虑围绕formview,detailsview的直接方式。 In such case, you would feel very easy if you had created your own UI with necessary controls. 在这种情况下,如果您使用必要的控件创建了自己的UI,则会感觉非常轻松。

Yes, they do. 是的,他们这样做。 Each of these has an insert/edit template. 其中每个都有一个插入/编辑模板。 You can make them work, and they work fine. 你可以使它们工作,它们工作正常。 Have used them in my own applications. 在我自己的应用程序中使用它们。 Complicated tasks, formview should be able to handle because you have full control over the UI and layout. 复杂的任务,formview应该能够处理,因为你可以完全控制UI和布局。

If you have a large form, detailsview allows you to specify fields and allows the control to do the work (you simply specify the data and detailsview handles the form), but of course with a custom UI the formview is the way to go, and yes it can be tedious to have to create large forms... but it's something we developers must do, either find or create a form builder control or create the UI markup ourselves. 如果你有一个大表单,detailsview允许你指定字段并允许控件执行工作(你只需指定数据和detailsview处理表单),但当然使用自定义UI,formview是要走的路,并且是的,必须创建大型表单可能很乏味......但这是开发人员必须做的事情,要么找到或创建表单构建器控件,要么自己创建UI标记。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM