Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ObjectDataSource usage

ObjectDataSource usage

Scheduled Pinned Locked Moved ASP.NET
databasemysqlsql-serveroraclesysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    imak
    wrote on last edited by
    #1

    I am working on a product that has ~ 30 web pages. Each page has various number of controls ( between 20 - 40 controls that include gridview, text boxes, combo boxes etc). This product should have ability to connect to different type of data sources ( Oracle, SQL Server, mySQL etc). I am using ObjectDataSource to populate controls on these pages. I am trying to minimize back and forth communication between the pages and backend database. I have createad stored procedure that will gather all the data required on each page (meaning one stored procedure per web page that give data needed by all controls on a given web page). I am wondering what is the best way of displaying this data by splitting rows return from stored procedure in the ObjectDataSource. Any links, code examples or hints will be higly appreciated. TIA

    modified on Tuesday, January 15, 2008 4:05:00 PM

    N P 2 Replies Last reply
    0
    • I imak

      I am working on a product that has ~ 30 web pages. Each page has various number of controls ( between 20 - 40 controls that include gridview, text boxes, combo boxes etc). This product should have ability to connect to different type of data sources ( Oracle, SQL Server, mySQL etc). I am using ObjectDataSource to populate controls on these pages. I am trying to minimize back and forth communication between the pages and backend database. I have createad stored procedure that will gather all the data required on each page (meaning one stored procedure per web page that give data needed by all controls on a given web page). I am wondering what is the best way of displaying this data by splitting rows return from stored procedure in the ObjectDataSource. Any links, code examples or hints will be higly appreciated. TIA

      modified on Tuesday, January 15, 2008 4:05:00 PM

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You have been around here long enough to know that reposting the same question draws the ire of everyone here. Saying it is repost is helpful for us to ignore you. The same goes for URGENT.


      only two letters away from being an asset

      I 1 Reply Last reply
      0
      • N Not Active

        You have been around here long enough to know that reposting the same question draws the ire of everyone here. Saying it is repost is helpful for us to ignore you. The same goes for URGENT.


        only two letters away from being an asset

        I Offline
        I Offline
        imak
        wrote on last edited by
        #3

        My apology for it. I didn't know that ,haven't really used these forum much. I did not want to offend anyone just am trying to get some sugggestion.

        1 Reply Last reply
        0
        • I imak

          I am working on a product that has ~ 30 web pages. Each page has various number of controls ( between 20 - 40 controls that include gridview, text boxes, combo boxes etc). This product should have ability to connect to different type of data sources ( Oracle, SQL Server, mySQL etc). I am using ObjectDataSource to populate controls on these pages. I am trying to minimize back and forth communication between the pages and backend database. I have createad stored procedure that will gather all the data required on each page (meaning one stored procedure per web page that give data needed by all controls on a given web page). I am wondering what is the best way of displaying this data by splitting rows return from stored procedure in the ObjectDataSource. Any links, code examples or hints will be higly appreciated. TIA

          modified on Tuesday, January 15, 2008 4:05:00 PM

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Your problem is that the ObjectDataSource is the aborted whoreson of satan. You really shouldn't use it - in any way at all. It just binds your datasource to the UI and that's bad news - you're just asking for trouble with scalability. Instead, consider separating your UI from the business layer and the data layer. This way you can have much more control over how the data is retrieved, how you page it, and so on.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          N 1 Reply Last reply
          0
          • P Pete OHanlon

            Your problem is that the ObjectDataSource is the aborted whoreson of satan. You really shouldn't use it - in any way at all. It just binds your datasource to the UI and that's bad news - you're just asking for trouble with scalability. Instead, consider separating your UI from the business layer and the data layer. This way you can have much more control over how the data is retrieved, how you page it, and so on.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Pete O'Hanlon wrote:

            ObjectDataSource is the aborted whoreson of satan

            Don't sugar coat it, let it out :laugh: :laugh:


            only two letters away from being an asset

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups