Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Render and GetHtml methods in DevExpress?

I would like to know whats the difference between using the method Render vs. using the method GetHtml, when using the DevExpress MVC Extensions? I know that GetHtml returns a MvcHtmString, and Render returns void, but I want to know what could be a practical difference to choose which one to use.

like image 956
Guillermo Gutiérrez Avatar asked May 21 '26 11:05

Guillermo Gutiérrez


1 Answers

Per the DevExpress site, it looks like they now do the same thing:

http://www.devexpress.com/Support/Center/p/Q388623.aspx

At present, the Render and GetHtml methods do the same thing: return a render string. Previously, the Render method wrote a render string to a Response directly. We have changed this behavior due to the following Breaking Change:

like image 58
Gromer Avatar answered May 24 '26 17:05

Gromer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!