johnfraser
Programmer
I have a ASP.net Tree and due to our end users I've implimented load on demand using AJAX. They are looking for additional savings by limiting the amount of nodes returned to 5 (as an example).
So:
Parent:
-Child01
-Child02
-Child03
-Child04
-Child05
-More..
When I click on more, it would give me the next 5:
Parent:
-Child01
-Child02
-Child03
-Child04
-Child05
-Child06
-Child07
-Child08
-Child09
-Child10
-More..
I'm not a SQL guy, mostly a C# guy. I know how to get the top 10 results but not an easy way to get X number of results at a time.
I assumed I would provide a proc that would take in the number I want and the "seed number" Y which tells me to get X results starting at Y
So:
Parent:
-Child01
-Child02
-Child03
-Child04
-Child05
-More..
When I click on more, it would give me the next 5:
Parent:
-Child01
-Child02
-Child03
-Child04
-Child05
-Child06
-Child07
-Child08
-Child09
-Child10
-More..
I'm not a SQL guy, mostly a C# guy. I know how to get the top 10 results but not an easy way to get X number of results at a time.
I assumed I would provide a proc that would take in the number I want and the "seed number" Y which tells me to get X results starting at Y