top button
Flag Notify
Site Registration

Explain the methods used to render the views in ASP.Net MVC?

+1 vote
3,999 views
Explain the methods used to render the views in ASP.Net MVC?
posted Aug 23, 2016 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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.

answer Aug 24, 2016 by Shivaranjini
Similar Questions
+4 votes

When using razor views, do you have to take any special steps to proctect your asp.net mvc application from cross site scripting (XSS) attacks?

...