forum

Home / DeveloperSection / Forums / Cant get input parameter to controller, Ajax.ActionLink

Cant get input parameter to controller, Ajax.ActionLink

Jayden Bell 7005 16-Apr-2013
Hi Everyone!

<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="../../Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
    @Ajax.ActionLink("Save", "Index", "Home", new AjaxOptions { UpdateTargetId = "saveResult" }, new { id = "1001" })
    <div id="saveResult">
</div>

Controller

public ActionResult Index(string id)
        {
            return View();
        }

Thank in advance!

Updated on 16-Apr-2013

Can you answer this question?


Answer

1 Answers

Liked By