Note that there are some explanatory texts on larger screens.

plurals
  1. POThe call is ambiguous between the following methods or properties:
    primarykey
    data
    text
    <p>I have 2 websites; One is for Public and other for admin.These boith are seperate websites. theSite.dll is for public and theSiteCMS for admin.</p> <p>The code below is from AdminSite i.e theSiteCMS.This site also contains theSite.dll reference which also has same member functions Html.ActiveLinkImage.</p> <p>I doubt that I am not able to isolate these call ;hence the error. Kindly suggest the right way.</p> <p><strong>Code theSiteCMS(admin site)</strong></p> <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage&lt;theSiteCMS.Helpers.Pagination&lt;theSiteCMS.Models.Article&gt;&gt;"%&gt; &lt;asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"&gt; Articles Management &lt;/asp:Content&gt; &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt; &lt;script type="text/javascript" language="javascript"&gt; function goToPage(pageIndex) { $("#page").val(pageIndex); $('#SearchForm').submit(); } function sortField(fld, sortDirection) { $("#sort_field").val(fld); $("#sort_dir").val(sortDirection); $('#SearchForm').submit(); return false; } &lt;/script&gt; &lt;h2&gt;Articles Management&lt;/h2&gt; &lt;% string[] articles_status = { "Draft", "Submitted", "Published", "Archived", "Deleted" }; %&gt; &lt;% var _gridState = (theSiteCMS.Controllers.ArticlesController.GridState)ViewData["GridState"]; var queryCollection = new { sort_field= _gridState.sort.field ,sort_dir = (_gridState.sort.direction == theSiteCMS.Controllers.AppController.SortDirection.Descending) ? "desc" : "asc" ,status = _gridState.status ,keyword = _gridState.keyword ,username = _gridState.username ,section_id = _gridState.section_id ,category_id = _gridState.category_id ,page = _gridState.page }; %&gt; &lt;%Html.BeginForm("index", "Articles", FormMethod.Post, new { id="SearchForm"}); %&gt; &lt;table width="100%"&gt; &lt;tr&gt; &lt;td width="16%"&gt;Status&lt;/td&gt; &lt;td width="16%"&gt;Section&lt;/td&gt; &lt;td width="16%"&gt;Category&lt;/td&gt; &lt;!--td width="16%"&gt;Published&lt;/td--&gt; &lt;td width="16%"&gt;User&lt;/td&gt; &lt;td width="16%"&gt;Keyword&lt;/td&gt; &lt;td width="4%"&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;%= Html.DropDownList("status", theSiteCMS.Controllers.ArticlesController.ArticleStatusList(_gridState.status), "ALL", new { onchange = "this.form.submit();" })%&gt;&lt;/td&gt; &lt;td&gt;&lt;%= Html.DropDownList("section_id", theSiteCMS.Controllers.SectionsController.SectionsList(_gridState.section_id), "--select all--", new { onchange = "this.form.submit();" })%&gt;&lt;/td&gt; &lt;td&gt;&lt;%= Html.DropDownList("category_id", theSiteCMS.Controllers.SectionsController.CategoriesList(_gridState.section_id, _gridState.category_id), "--select all--", new { onchange = "this.form.submit();" })%&gt;&lt;/td&gt; &lt;!--td&gt;&lt;%/* Html.jQuery().DatePicker() .Name("publish_at") .DateFormat("mm-dd-yy") .NavigationAsDateFormat(true) .HtmlAttributes(new { style="width:100px"}) .Render();*/ %&gt;&lt;/td--&gt; &lt;td&gt;&lt;%= Html.TextBox("username", _gridState.username, new { style = "width:100px" })%&gt;&lt;/td&gt; &lt;td&gt;&lt;%= Html.TextBox("keyword", _gridState.keyword, new { style="width:100px"})%&gt;&lt;/td&gt; &lt;td width="15%"&gt;&lt;input type="submit" value="find" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;%=Html.Hidden("sort_dir", _gridState.sort.direction == theSiteCMS.Controllers.AppController.SortDirection.Descending?"desc":"asc") %&gt; &lt;%=Html.Hidden("sort_field", _gridState.sort.field) %&gt; &lt;%=Html.Hidden("page", _gridState.page) %&gt; &lt;%Html.EndForm(); %&gt; &lt;hr /&gt; &lt;table width ="100%"&gt; &lt;caption&gt;&lt;%= ViewData["Message"] %&gt;&lt;/caption&gt; &lt;tr&gt; &lt;th&gt;Action&lt;/th&gt; &lt;th&gt;&lt;%= Html.ActionLink("Title", "Index", new { action="Index"}, new { @class = Html.GetSortCssClass(_gridState.sort, "title"), onclick = "return sortField('title','asc');" })%&gt;&lt;/th&gt; &lt;th&gt;&lt;%= Html.ActionLink("Author", "Index", new { action="Index"}, new { @class = Html.GetSortCssClass(_gridState.sort, "user_id"), onclick = "sortField('user_id','asc');return false;" })%&gt;&lt;/th&gt; &lt;th&gt;&lt;%= Html.ActionLink("Date", "Index", new { action="Index"}, new { @class = Html.GetSortCssClass(_gridState.sort, "publish_at"), onclick = "sortField('publish_at','asc');return false;" })%&gt;&lt;/th&gt; &lt;th&gt;&lt;%= Html.ActionLink("Status", "Index", new { action="Index"}, new { @class = Html.GetSortCssClass(_gridState.sort, "status"), onclick = "sortField('status','asc');return false;" })%&gt;&lt;/th&gt; &lt;th&gt; Comments &lt;/th&gt; &lt;th&gt; View count &lt;/th&gt; &lt;/tr&gt; &lt;% foreach (var item in Model) { %&gt; &lt;tr&gt; &lt;td width="100"&gt; &lt;%=Html.ActionLinkImage("Edit", Url.Content("~/images/icons/pencil.png"), "Edit", new { action = "Edit", id = item.id }, new { title = "Edit" })%&gt; &lt;%=Html.ActionLinkImage("View", Url.Content("~/images/icons/eye.png"), "Details", new { action = "Details", id = item.id }, new { title = "View" })%&gt;&lt;br /&gt; &lt;% if (item.status ==0){ //draft%&gt; &lt;%=Html.Image("~/images/icons/application_edit.png", new {@class="disabled"}) %&gt; &lt;%} else {%&gt; &lt;%=Html.ActionLinkImage("Draft", Url.Content("~/images/icons/application_edit.png"), "changeStatus", new { action = "changeStatus", id = item.id, s = 0 }, new { title="Draft"})%&gt; &lt;%} %&gt; &lt;% if (item.status ==1){ //submit%&gt; &lt;%=Html.Image("~/images/icons/application_go.png", new {@class="disabled"}) %&gt; &lt;%} else {%&gt; &lt;%=Html.ActionLinkImage("Draft", Url.Content("~/images/icons/application_go.png"), "changeStatus", new { action = "changeStatus", id = item.id, s = 1 }, new { title = "Submit" })%&gt; &lt;%} %&gt; &lt;% if (item.status ==2){ //publish %&gt; &lt;%=Html.Image("~/images/icons/accept.png", new {@class="disabled"}) %&gt; &lt;%} else {%&gt; &lt;%=Html.ActionLinkImage("Publish", Url.Content("~/images/icons/accept.png"), "changeStatus", new { action = "changeStatus", id = item.id, s = 2 }, new { title = "Publish" })%&gt; &lt;%} %&gt; &lt;% if (item.status ==3){ //archive %&gt; &lt;%=Html.Image("~/images/icons/compress.png", new {@class="disabled"}) %&gt; &lt;%} else {%&gt; &lt;%=Html.ActionLinkImage("Archive", Url.Content("~/images/icons/compress.png"), "changeStatus", new { action = "changeStatus", id = item.id, s = 3 }, new { title = "Archive" })%&gt; &lt;%} %&gt; &lt;% if (item.status ==4){ //deleted %&gt; &lt;%=Html.Image("~/images/icons/application_delete.png", new {@class="disabled"}) %&gt; &lt;%} else {%&gt; &lt;%=Html.ActionLinkImage("Archive", Url.Content("~/images/icons/application_delete.png"), "changeStatus", new { action = "changeStatus", id = item.id, s = 4 }, new { title = "Delete" })%&gt; &lt;%} %&gt; &lt;/td&gt; &lt;td&gt; &lt;%= Html.Encode(item.title)%&gt;&lt;br/&gt; &lt;%= Html.Encode(item.Category.Section.title)%&gt; , &lt;%= Html.Encode(item.Category.title)%&gt; &lt;/td&gt; &lt;td&gt; &lt;%= Html.Encode(item.User.username)%&gt; &lt;/td&gt; &lt;td&gt; &lt;%= Html.Encode(String.Format("{0:g}", item.publish_at))%&gt; &lt;/td&gt; &lt;td&gt; &lt;%= Html.Encode(articles_status[item.status])%&gt; &lt;/td&gt; &lt;td&gt; &lt;%= Html.Encode(item.Comments.Count())%&gt; &lt;/td&gt; &lt;td&gt; &lt;%= Html.Encode(item.viewcount)%&gt; &lt;/td&gt; &lt;/tr&gt; &lt;% } %&gt; &lt;/table&gt; &lt;div class="pagination"&gt; &lt;% if (Model.HasPreviousPage) { %&gt; &lt;%= Html.RouteLink("previous", "Default", new { page = (Model.PageIndex - 1) })%&gt; &lt;% } else { %&gt; previous &lt;%} %&gt; | &lt;% if (Model.HasNextPage) { %&gt; &lt;%= Html.RouteLink("next", "Default", new { page = (Model.PageIndex + 1) })%&gt; &lt;% } else { %&gt; next &lt;%} %&gt; &lt;/div&gt; &lt;/asp:Content&gt; </code></pre> <p><strong>The Error I get:</strong></p> <pre><code>The call is ambiguous between the following methods or properties: 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' and 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' \My Documents\Visual Studio 2008\Projects\3ICMS\Views\Articles\Index.aspx 111 ------ The call is ambiguous between the following methods or properties: 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' \My Documents\Visual Studio 2008\Projects\3ICMS\Views\Articles\Index.aspx 116 ------ The call is ambiguous between the following methods or properties: 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' and 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' \My Documents\Visual Studio 2008\Projects\3ICMS\Views\Articles\Index.aspx 106 ------ The call is ambiguous between the following methods or properties: 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' and 'System.Web.Mvc.Html.HtmlExtensions.ActionLinkImage(System.Web.Mvc.HtmlHelper, string, string, string, object, object)' \My Documents\Visual Studio 2008\Projects\3ICMS\Views\Articles\Index.aspx 101 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload