ObjectDataSource Bound to object with Constructor Parameters

Posted on: Mon Nov 16 16:07:55 -0800 2009. Updated on: Mon Nov 16 16:09:35 -0800 2009.
Category: .NET C#

This comes in really handy if you have a class object that has constructors that take in parameters. Basically you will define the ObjectCreating event of the object data source and instantiate your object there, setting the constructor parameters and then set e.ObjectInstance to your object.

An example here: http://www.devtoolshed.com/content/objectdatasource-typename-constructor-parameters

Comments:

Thu Feb 10 03:32:12 -0800 2011
Do you acknowledge that it's correct time to get the <a href="http://bestfinance-blog.com/topics/credit-loans">credit loans</a>, which would realize your dreams.


---------------------------------------------------

Add a Comment:

simple_captcha.jpg
(human authentication)


Ads

Categories

About

Random foliage

This website is meant to be a reference for ASP Dot Net developers. The entries are a compilation of things I've figured out how to do and that I deem useful to keep of track for future reference. Assumptions: web development with: C Sharp (vb sucks), visual studio 05/08, .net 3.5, meant for programmers. Written by: James Reategui.