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 639729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:52:30+00:00 2026-05-13T20:52:30+00:00

I’ve never had the need to really ever use any of the .NET Data

  • 0

I’ve never had the need to really ever use any of the .NET Data sources other than the SiteMap datasource however I’m trying to take advantage of the built in CRUD operations on a control which needs to be assigned a data source to correctly work.

As I’ve been working through information online about implementing the ObjectDataSource and its related classes I’ve realized what was so glaringly unsettling about it, the fact it drives off basically a static class that is supposed to magically be able to handle the CRUD operations of a type. Once this dawned on me I couldn’t see anyway to correctly design these adapters so they don’t bleed concern like a hemophiliac.

The only ideas I’ve come up with is if the class leverages the Service Locator pattern inside each of it’s operations to get the correct class for doing the actual CRUD. Which would be somewhat doable by just using .Resolve from an inversion of control container, however this seems like then I would just be shifting the concern to an even less obvious place by needing to do lots of magic with my IOC framework to always resolve the correct instance of the data proxy.

All I really need the adapter to do is to mediate calls to apply CRUD operations to ViewState backed IList<MyBizObject>.

After doing some more pondering on this as I’ve been writing the question I started to think about how I use the Model-View-Presenter pattern for logic separation my first solution I see is since my Presenter class has a property for my View on it that I could use Container.Resolve<Presenter>() which would give me access to my View which would give me access to my ViewState backed field and to create a class for each presenter that needs it’s view to have an ObjectDataSource.

Does anyone else have any input or alternatives than my last thoughts on this?

  • 1 1 Answer
  • 1 View
  • 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-05-13T20:52:30+00:00Added an answer on May 13, 2026 at 8:52 pm

    To answer my own question, yes it just really sucks. However with service locator pattern it’s possible to expose your stateful page viewstate or any other type of stateful repository to a stateless object datasource provider class.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I need a function that will clean a strings' special characters. I do NOT
I want to construct a data frame in an Rcpp function, but when I
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

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.