Too subtle, in fact it doesnt even err
-
That is what happens if your
ObjectDataSource.SelectCountMethod
returns anything but anInt32
(Int64
in my case). When using it withGridView
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."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.
-
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.
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." -
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."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 -
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."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.
-
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.
C# has no
integer
keyword :) ;Pxacc.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." -
C# has no
integer
keyword :) ;Pxacc.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.":laugh:I'll grant you that one.
Deja View - the feeling that you've seen this post before.
-
:laugh:I'll grant you that one.
Deja View - the feeling that you've seen this post before.
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." -
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."Unfortunately yes. Argghhh. I feel dirty now.
Deja View - the feeling that you've seen this post before.
-
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." -
C# has no
integer
keyword :) ;Pxacc.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."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