servicestack, restful access, loads data twice at page load
servicestack, restful access, loads data twice at page load
FredFlintstone
Posts: 24Questions: 0Answers: 0
hi - i've noticed that my server code is called twice when implementing an ajax call to a restful service, during the initial load of a page of paged data.
the reason seems to be that the code is called when the user clicks the link to the page. this runs the server code. but, once the page is loaded, my jquery then kicks in and makes the ajax call to go get the data (a second time!). am i doing something silly here? missing something? i noticed the iDeferLoading parm but it seems to require the first page of data (along with the total number of rows) hardcoded into the page? how would that be possible?
the reason seems to be that the code is called when the user clicks the link to the page. this runs the server code. but, once the page is loaded, my jquery then kicks in and makes the ajax call to go get the data (a second time!). am i doing something silly here? missing something? i noticed the iDeferLoading parm but it seems to require the first page of data (along with the total number of rows) hardcoded into the page? how would that be possible?
This discussion has been closed.
Replies
Allan