Skip to main content

Timeline for Account view with MVC and paging

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Dec 12, 2014 at 18:47 history edited Vsevolod Goloviznin CC BY-SA 3.0
added 120 characters in body
Dec 12, 2014 at 18:47 comment added Vsevolod Goloviznin @SteveMichael I agree with you, but without the knowledge of the OPs architecture it's the best (of the worst) solution. I'll edit the answer to reflect this point
Dec 12, 2014 at 18:41 comment added Steve Michael Using ViewBag is really an anti pattern. You should always use strongly typed view models.
Dec 10, 2014 at 21:06 history edited Vsevolod Goloviznin CC BY-SA 3.0
added 2 characters in body
Dec 10, 2014 at 12:24 vote accept Altuğ Gülsepet
Dec 10, 2014 at 12:18 comment added Vsevolod Goloviznin You can just do @Url.Action("Index", "Account", new { accountListFilter = ViewBag.Filter}. If you want to change the value, jsut do ViewBag.Filter.yourvalue = "something"
Dec 10, 2014 at 12:02 comment added Altuğ Gülsepet I mean my code must be according to your answer: @Url.Action("Index","Account",new{ViewBag.Filter}). But at this action i change the one value of ViewBag.Filter . Namely, @Url.Action("Index","Account",new{ViewBag.Filter.sortOder="Username asc"}). But at this code i am sending a one parameter. I wanna send amended ViewBag.Filter Model.
Dec 10, 2014 at 11:55 comment added Vsevolod Goloviznin If you change the values, then you have some sort of a form or what?
Dec 10, 2014 at 11:54 comment added Altuğ Gülsepet Thanks. But What about @Url.Action("Index", "Account", new { pagesize = currentPageSize, sortOrder = "UserName asc", usernameFilter = @currentUsernameFilter...}. This is the main problem. I change the value and send model. How is be my Url.Action?
Dec 10, 2014 at 11:30 review First posts
Dec 10, 2014 at 11:32
Dec 10, 2014 at 11:26 history answered Vsevolod Goloviznin CC BY-SA 3.0