Hi,
I have a simple question to ask you guys.
I know that which is a good practice? Using ObjectDataSOurce or binding yourself?
Does this makes any difference depending upon the objects?
Please share your thoughts concerning this topic.
Hi,
I have a simple question to ask you guys.
I know that which is a good practice? Using ObjectDataSOurce or binding yourself?
Does this makes any difference depending upon the objects?
Please share your thoughts concerning this topic.
I think this is an important article for you to read & understand the concept of ASP.NET 2.0 GridView ObjectDataSource versus Custom Binding
I hope this helps!
But since am a beginner i would like to code this manually!
Custom binding until you are very well experienced with the codes.
Its a choice of user/developer IMO.
If you want to use the ObjectDataSource it makes it simpler but at the same time you loose the flexibility since you don't have full control over databinding.
Loose some gain some
When binding the ObjectDataSource (or any other type of DataSource
control) with the DataSourceID property of controls like GridView,
FormView etc, then you have no control over when the *automatic* data
binding occurs.
You can however force it to occur manually with the DataBind() method.
This will cause the data binding to occur in addition to when it
happens automatically.
Please see this page:
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=368
I'm for the build-in objects, but if u are not using them as components on
your forms
I see there advantages that u relies on the existed classess which are the
part of .NET FW and doesnt invent the wheel.
it helps you extend your knowlege of .NET FW and improve the development
speed reusing the standard classess
Bookmarks