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. Other Discussions
  3. Clever Code
  4. Too subtle, in fact it doesnt even err

Too subtle, in fact it doesnt even err

Scheduled Pinned Locked Moved Clever Code
phpvisual-studiocom
11 Posts 5 Posters 5 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.
  • L leppie

    That is what happens if your ObjectDataSource.SelectCountMethod returns anything but an Int32 (Int64 in my case). When using it with GridView it simply shows nothing, except the header. No errors, no exception, just no data. Thank you for wasting an hour of my life, sending me on a wild goose chase... :sigh:

    xacc.ide
    IronScheme a R5RS-compliant Scheme on the DLR
    The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

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

    Well, the documentation for it does state: A string that represents the name of the method or function that the ObjectDataSource uses to retrieve a row count. The method must return an integer. The default is an empty string (""). You can't really blame them for expecting people to follow the documentation.

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

    L 1 Reply Last reply
    0
    • P Pete OHanlon

      Well, the documentation for it does state: A string that represents the name of the method or function that the ObjectDataSource uses to retrieve a row count. The method must return an integer. The default is an empty string (""). You can't really blame them for expecting people to follow the documentation.

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

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #3

      Errm, and you are saying an Int64 aka long isn't an integer? :doh:

      xacc.ide
      IronScheme a R5RS-compliant Scheme on the DLR
      The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

      P P 2 Replies Last reply
      0
      • L leppie

        Errm, and you are saying an Int64 aka long isn't an integer? :doh:

        xacc.ide
        IronScheme a R5RS-compliant Scheme on the DLR
        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

        P Offline
        P Offline
        peterchen
        wrote on last edited by
        #4

        technically, yes. One thing is, though, that documentation could be more poignant and diagnostics could be better. The second: that´s the pain with this RAD development, plugging together finished things.


        We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
        My first real C# project | Linkify!|FoldWithUs! | sighist

        1 Reply Last reply
        0
        • L leppie

          Errm, and you are saying an Int64 aka long isn't an integer? :doh:

          xacc.ide
          IronScheme a R5RS-compliant Scheme on the DLR
          The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

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

          leppie wrote:

          Errm, and you are saying an Int64 aka long isn't an integer?

          It's the difference between an integer as a mathematical construct (i.e. a whole number) and an integer as a keyword.

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

          L 1 Reply Last reply
          0
          • P Pete OHanlon

            leppie wrote:

            Errm, and you are saying an Int64 aka long isn't an integer?

            It's the difference between an integer as a mathematical construct (i.e. a whole number) and an integer as a keyword.

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

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #6

            C# has no integer keyword :) ;P

            xacc.ide
            IronScheme a R5RS-compliant Scheme on the DLR
            The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

            P D 2 Replies Last reply
            0
            • L leppie

              C# has no integer keyword :) ;P

              xacc.ide
              IronScheme a R5RS-compliant Scheme on the DLR
              The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

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

              :laugh:I'll grant you that one.

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

              My blog | My articles

              L 1 Reply Last reply
              0
              • P Pete OHanlon

                :laugh:I'll grant you that one.

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

                My blog | My articles

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #8

                Pete O`Hanlon wrote:

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

                Maybe in a VB nightmare :) (it is a VB keyword isn't it?)

                xacc.ide
                IronScheme a R5RS-compliant Scheme on the DLR
                The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                P D 2 Replies Last reply
                0
                • L leppie

                  Pete O`Hanlon wrote:

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

                  Maybe in a VB nightmare :) (it is a VB keyword isn't it?)

                  xacc.ide
                  IronScheme a R5RS-compliant Scheme on the DLR
                  The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

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

                  Unfortunately yes. Argghhh. I feel dirty now.

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

                  My blog | My articles

                  1 Reply Last reply
                  0
                  • L leppie

                    Pete O`Hanlon wrote:

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

                    Maybe in a VB nightmare :) (it is a VB keyword isn't it?)

                    xacc.ide
                    IronScheme a R5RS-compliant Scheme on the DLR
                    The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                    D Offline
                    D Offline
                    Dan Neely
                    wrote on last edited by
                    #10

                    leppie wrote:

                    Maybe in a VB nightmare

                    points at sig.

                    -- Help Stamp Out and Abolish Redundancy The preceding is courtesy of the Department of Unnecessarily Redundant Repetition Department.

                    1 Reply Last reply
                    0
                    • L leppie

                      C# has no integer keyword :) ;P

                      xacc.ide
                      IronScheme a R5RS-compliant Scheme on the DLR
                      The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                      D Offline
                      D Offline
                      DavidNohejl
                      wrote on last edited by
                      #11

                      ObjectDataSource is not to be used only from C# :P But then again, there is no Integer in CLR either.


                      [My Blog]
                      "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
                      "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

                      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