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.
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?

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: http://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



Article ID: Published Date: Last Revised Date: Platform: Control:
2490 08/13/2014 01/13/2015 ASP.NET MVC Grid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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