1.

Explain The Methods Used To Render The Views In Mvc?

Answer»

Below are the methods USED to render the views from action:

  • VIEW() – To RETURN the view from action.
  • PartialView() – To return the partial view from action.
  • RedirectToAction() – To REDIRECT to DIFFERENT action which can be in same controller or in different controller.
  • Redirect() – Similar to “Response.Redirect()” in webforms, used to redirect to specified URL.
  • RedirectToRoute() – Redirect to action from the specified URL but URL in the route table has been matched.

Below are the methods used to render the views from action:



Discussion

No Comment Found