Proper pagination in c# by days in asp.net mvc environment -


following scenario: have x amount of elements different dates. want group elements date , display elements each day. want display 3 days per page. data loaded on page refresh in model.

what doing load elements in global.asax , have list of objects using relation between page id , date. when open page id 1, videos date according id. when add item database, i'd have redo whole process. wondering if there better way handle whole thing.

well marianne, there's no code in question nobody able speak that.

your architecture use few tweaks. things stick out are:

  1. using global.asax controller. that's big no-no. use controller it's meant used. if absolutely need cache of database results, take @ sqldependency.
  2. if reading post correctly, appear not using where clause in sql query. big no-no.

i bet 2 changes find of issue goes away. if after making changes find still have issue, feel free post new question.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -