Advertisement

01.17.2008 at 07:18AM PST, ID: 23090400
[x]
Attachment Details

Add a custom object as a parameter to my objectdatasource

Asked by hamidovt in .NET Framework 2.0, C# Programming Language, Visual Studio .NET 2005

Tags: ASP .Net, C#

Hi,

I need to add a custom object as a parameter to my objectdatasource. Does anyone knows how?

It is OK with Boolean, String, Int and can be used as this:

odsEDatabases.SelectParameters["editMode"] = new Parameter("editMode", TypeCode.Boolean, editMode.ToString());


Bu how to do it with an Object. This does not work:

odsEDatabases.SelectParameters["businessSector"] = new Parameter("businessSector", TypeCode.Object, new BusinessSector(int.Parse(ddlBusinessSectors.Select edValue));Start Free Trial
[+][-]01.17.2008 at 07:20AM PST, ID: 20682092

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 02:07AM PST, ID: 20795416

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.0, C# Programming Language, Visual Studio .NET 2005
Tags: ASP .Net, C#
Sign Up Now!
Solution Provided By: hamidovt
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628