ASP.NET 2.0 DataBind对象来表单元素 [英] ASP.NET 2.0 DataBind Object To Form Element
本文介绍了ASP.NET 2.0 DataBind对象来表单元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法将业务对象的属性(如
一个Employee)数据绑定到asp.net 2.0中表单中的字段?
cmay
Is there any way to databind the properties of a business object, like
an Employee, to fields in a form in asp.net 2.0?
cmay
推荐答案
2006年3月16日18:26:29 -0800,cmay写道:
On 16 Mar 2006 18:26:29 -0800, cmay wrote:
有没有办法将业务对象的属性(如
一个Employee)数据绑定到asp.net 2.0中表单中的字段?
Is there any way to databind the properties of a business object, like
an Employee, to fields in a form in asp.net 2.0?
你想要ObjectDataSource。这允许绑定控件到业务
对象。
You want ObjectDataSource. This allows binding controls to a business
object.
有没有办法构建表单控件,或者你必须使用
使用ObjectDataSource时的Gridview?
Chris
Erik Funkenbusch写道:
Is there any way to build to form controls, or do you have to use a
Gridview when using the ObjectDataSource?
Chris
Erik Funkenbusch wrote:
2006年3月16日18:26:29 -0800,cmay写道:
On 16 Mar 2006 18:26:29 -0800, cmay wrote:
有没有办法将业务对象的属性(如
一个Employee)数据绑定到表单中的字段asp.net 2.0?
Is there any way to databind the properties of a business object, like
an Employee, to fields in a form in asp.net 2.0?
你想要ObjectDataSource。这允许将控件绑定到业务对象。
You want ObjectDataSource. This allows binding controls to a business
object.
2006年3月19日10:51:46 -0800,cmay写道:
On 19 Mar 2006 10:51:46 -0800, cmay wrote:
有没有办法构建表单控件,或者在使用ObjectDataSource时是否必须使用
Gridview?
Is there any way to build to form controls, or do you have to use a
Gridview when using the ObjectDataSource?
您可以将任何数据源绑定到表单控件。它的工作方式完全相同
你可以将它们绑定到SqlDataSource。
You can bind any data source to form controls. It works the exact same way
youw ould bind them to a SqlDataSource.
这篇关于ASP.NET 2.0 DataBind对象来表单元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文