asp.net mvc - Html.Action link returns 404 error after deployment -
i want call action controller on click of actionlink. works perfect in local doesn't work after deployment (results 404 error). please on this.
view:
<%:html.actionlink("activate", "representativeaccessactivate","adminnew", new { id = uselist.email_user_name }, new { onclick = "return confirm('are sure want activate user?')" ,@class="view"}) %> action :
[httpget] public actionresult representativeaccessactivate(string id) { framesbusinessservice.framesbusinessseviceclient client = new framesbusinessservice.framesbusinessseviceclient(); client.ser_updaterepresentativestatus(id, true, "salesrepresentative"); client.close(); return redirecttoaction("representative"); }
Comments
Post a Comment