Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:09:45+00:00 2026-06-08T12:09:45+00:00

I am using an ObjectDataSource and I would like to pass a custom object

  • 0

I am using an ObjectDataSource and I would like to pass a custom object as the select parameter.

Here is my DL method:

public static Collection<AdminUserEntity> GetUsers(ClientEntity currentClient)
{
}

So when I configure my ObjectDataSource I choose the AdminUserEntity as the buisness object to bind to and then choose GetUsers as the Select method but as you see it takes a complex type as a parameter and I don’t know how to specify this using the wizard or manually.

After some more digging I found this solution:

protected void ods_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
     ClientEntity currentClient = ClientEntity.GetClient("abc");
     e.InputParameters["currentClient"] = currentClient;
}

Are there any other ways to accomplish this or is this a good solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:09:46+00:00Added an answer on June 8, 2026 at 12:09 pm

    Take a look at the bottom of this article: http://msdn.microsoft.com/en-us/library/57hkzhy5(v=vs.80).aspx

    You’ll want to use the DataObjectTypeName property on the ObjectDataSource control. This will be the name of the custom object.

    Either solution should work just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an ObjectDataSource to bind an object to a GridView. In the OnRowDataBound
Is it possible to implement custom paging for repeater using ObjectDataSource's: EnablePaging=true MaximumRowsParameterName=maximumRows StartRowIndexParameterName=startRowIndex
Quick overview Trying to insert a Business Object using ObjectDataSource (on a GridView) Get
I am binding dropdown list using Object data source. I got an error like
I have custom objects I am binding to using ObjectDataSource. I have three-level binding:
I am using a Session Parameter on an ObjectDataSource. It works fine on the
I'm using an ObjectDataSource with a 2008 ReportViewer control and Linq to CSV. The
I'm considering using an ObjectDataSource as an intermediate between my page controls and my
Using SQL Server 2008 R2 we are looking for a way to select the
I have a telerik radgrid that is doing an insert using an objectdatasource. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.