I am developing web application using asp.net mvc. I have following requirement.
- My Index method gives me list of products on homepage.
- I need to get page size as per the current browser resolution. (i.e if 1600*900 page size will be 12)
- For that i am calling one Action Method and from its View i am setting page size using ajax call by getting inner width using JQuery and that ajax call saves the page size in session.
- Is there any method or way i can call this view before the Index method? And then redirect again on Index method?