In MVC pattern where does the response.redirect will come.Either in view and controller.
In MVC pattern where does the response.redirect will come.Either in view and controller.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d also say in the controller. the view is only responsible for displaying the data and maybe doing a little data fetching. Although I’m restricting my views to just displaying and formatting.
So the controller has all the information when to redirect. So the result of a controller action is either a redirect or a view rendering. (Where presenting a download is considered as view rendering)