What is Difference between Html.Partial and Html.RenderPartial in MVC? [Resolved]

Posted by Kumarkrishna184 under ASP.NET MVC on 11/26/2015 | Points: 10 | Views : 4990 | Status : [Member] | Replies : 2
What is Difference between Html.Partial and Html.RenderPartial in MVC?

Thanks and Regards,
Krishna Kumar



Responses

Posted by: Rajayadav on: 11/27/2015 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hello,The main difference between Partial and RenderPartial is : Partial return string and write it to document . RenderPartial actually write direct to context response.


more details checkout below links

http://www.dotnet-tricks.com/Tutorial/mvc/Q8V2130113-RenderPartial-vs-RenderAction-vs-Partial-vs-Action-in-MVC-Razor.html

http://www.c-sharpcorner.com/UploadFile/b182bf/what-is-partial-view-and-difference-between-html-partial-and/

http://www.c-sharpcorner.com/UploadFile/97fc7a/differences-and-similiarities-between-html-renderaction-and/

Thanks
-Raja

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajnilari2015 on: 11/26/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Up
0
Down
Please look into this http://stackoverflow.com/questions/5248183/html-partial-vs-html-renderpartial-html-action-vs-html-renderaction

--
Thanks & Regards,
RNA Team

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response