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. Databinding

Databinding

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestiondiscussion
3 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.
  • U Offline
    U Offline
    User 4483848
    wrote on last edited by
    #1

    What are peoples thoughts on databinding (in ASP.NET), is it good or bad? I have recently started using databinding and I am not enjoying it. My biggest problem is that it is so hard to test. The only way to test it is by running it and manually trying every possibility. I fear that I will leave one or two properties unlinked and then they won't do anything. At the moment I am unable to get a dropdownlist working on a InsertItemTemplate. As it is the 'insert' one it doesn't try to populate the objects. I need to populate the items in the dropdown, but not populate the value. Setting the datasource doesn't do anything. Any ideas how I can solve this problem?

    C M 2 Replies Last reply
    0
    • U User 4483848

      What are peoples thoughts on databinding (in ASP.NET), is it good or bad? I have recently started using databinding and I am not enjoying it. My biggest problem is that it is so hard to test. The only way to test it is by running it and manually trying every possibility. I fear that I will leave one or two properties unlinked and then they won't do anything. At the moment I am unable to get a dropdownlist working on a InsertItemTemplate. As it is the 'insert' one it doesn't try to populate the objects. I need to populate the items in the dropdown, but not populate the value. Setting the datasource doesn't do anything. Any ideas how I can solve this problem?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Member 4487083 wrote:

      What are peoples thoughts on databinding (in ASP.NET), is it good or bad?

      Well, I guess my question would be, what is the alternative ? Writing code that iterates by hand ? No thanks.

      Member 4487083 wrote:

      My biggest problem is that it is so hard to test. The only way to test it is by running it and manually trying every possibility.

      I'm not sure how you mean.

      Member 4487083 wrote:

      I need to populate the items in the dropdown, but not populate the value. Setting the datasource doesn't do anything. Any ideas how I can solve this problem?

      You should populate your drop down in the item databound event.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • U User 4483848

        What are peoples thoughts on databinding (in ASP.NET), is it good or bad? I have recently started using databinding and I am not enjoying it. My biggest problem is that it is so hard to test. The only way to test it is by running it and manually trying every possibility. I fear that I will leave one or two properties unlinked and then they won't do anything. At the moment I am unable to get a dropdownlist working on a InsertItemTemplate. As it is the 'insert' one it doesn't try to populate the objects. I need to populate the items in the dropdown, but not populate the value. Setting the datasource doesn't do anything. Any ideas how I can solve this problem?

        M Offline
        M Offline
        Muhammad Mazhar
        wrote on last edited by
        #3

        Databinding is a great feature, a base to zero code tricks. If you follow rules properly you will found it very helpfull and very thin front end pages.

        Share your experience with others Check my Blog...

        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