1.

Explain The Methods Used To Render The Views In Asp.net 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 -

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.



Discussion

No Comment Found