This project is read-only.

Html.actionlink/Html.BeginForm could not work

Mar 26, 2013 at 4:50 AM
Hi All,
If there is anyone encoutered this problem: The function Html.ActionLink and Html.BeginForm are work properly in self machine. And then, publish the website appliction to the pro envieroment. Those function are not work. Howere, there is another website in the same server with the same assembly and other dll files. Actually, it is the same website which was published in few weeks ago. But they are use the seme dlls and MVC version( mvc4 Razor).

Here is the code:

  • @Html.ActionLink(linkText:Model.PageResource["mnu_NewClient"],actionName:"CreateSearch", controllerName:"Client",routeValues:null,htmlAttributes: new { target="_blank"})</li>

    @using (Html.BeginForm("Result", "Client", FormMethod.Post, new {id = "ClientSearchForm"}))