Helper extensions for view results.
Renders the PartialViewResult and returns the produced HTML.
public String ToHtml(result, httpContext)
The HTML rendered by the PartialViewResult.
Name | Type | Summary |
---|---|---|
result | PartialViewResult | A PartialViewResult. |
httpContext | HttpContext | The HttpContext. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when result is null. -or- When httpContext is null. |
Renders the ViewResult and returns the produced HTML.
public String ToHtml(result, httpContext)
The HTML rendered by the ViewResult.
Name | Type | Summary |
---|---|---|
result | ViewResult | A ViewResult. |
httpContext | HttpContext | The HttpContext. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when result is null. -or- When httpContext is null. |