We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to avoid the error message "CS1502:The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write" having invalid arguments?

Platform: ASP.NET MVC |
Control: Grid
Tags: grid

Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments.


The error message above is obtained since .Render() is mentioned in the .cshtml page.


The parenthesis used in Html helper (“@(Html.EJ“) defines an explicit expression and the curly brackets(“@{Html.EJ“) defines a regular C# code block. The difference is that the explicit expression submits its output directly as a part of the HTML markup and the code block does not submit it directly.

(@(Html.EJ- Returns the MvcHtmlString, so it must be called inside parenthesis.

(“@{Html.EJ- Renders directly to view internally and returns void.

In Essential Studio, the HtmlString in Render() method is returned. So it returns null and the Grid does not appear. So in order to avoid the above mentioned error, use parenthesis instead of the curly brackets.

But in the latest release, Volume 2, 2014 version, the Render() method using void return type is updated. The changes made in v12.2.0.36 in the release notes can be tracked using the following links.

Release Notes: https://s3.amazonaws.com/files2.syncfusion.com/Installs/v12.2.0.36/ReleaseNotes/ASPMVC.html

API Changes Documentation http://help.syncfusion.com/ug/js/default.htm#!documents/apichangesdetails.htm

Online Sample Link



2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile