Template Documentation
ViewExtensionsRenderToString Method |
Returns the PartialView render as String
Namespace: Template.Web.Commons.Utils
Assembly: Template.Web (in Template.Web.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static string RenderToString( this PartialViewResult partialView )
Parameters
- partialView
- Type: PartialViewResult
[Missing <param name="partialView"/> documentation for "M:Template.Web.Commons.Utils.ViewExtensions.RenderToString(System.Web.Mvc.PartialViewResult)"]
Return Value
Type: StringThe String result
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type PartialViewResult. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also