Click here to Skip to main content
15,938,325 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
this is View.Edit:

<div class="container" style="tab-size:inherit">
        <ul class="nav nav-tabs">
            <li class="active"><a data-toggle="tab" href="java<!-- no -->script:void(0);">English</a></li>
            <li><a data-toggle="tab" href="java<!-- no -->script:void(0);">Hebrew</a></li>
            <li><a data-toggle="tab" href="#menu2">French</a></li>
            <li><a data-toggle="tab" href="#menu3">Russian</a></li>
            <li><a data-toggle="tab" href="#menu3">Spanish</a></li>
            <li><a data-toggle="tab" href="#menu1">German</a></li>
            <li><a data-toggle="tab" href="#menu2">Italian</a></li>
            <li><a data-toggle="tab" href="#menu3">Dutch</a></li>
            <li><a data-toggle="tab" href="#menu3">Chinese</a></li>
            <li><a data-toggle="tab" href="#menu1">Japanese</a></li>
            <li><a data-toggle="tab" href="java<!-- no -->script:void(0);">Arabic</a></li>
        <div class="form-group" hidden="hidden">
            @Html.LabelFor(model => model.POIId, "Name", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownListFor(model => model.CategoryId, ViewBag.CategoryId.Items as IEnumerable<SelectListItem>, new { onchange = "setcategory()", @class = "form-control" })
                @Html.ValidationMessageFor(model => model.CategoryId)
        <div id="lang"></div>
<<script src="~/Scripts/jquery-1.10.2.min.js"></script>

    function toEdidLang(langId) {
        var id = $("#id").val();
        //var city=$("")
        var target = "/CII.Web/POI/EditLang?id=" + id + "&langId=" + langId
            url: target,
            type: "GET",
            async: true,

            success: function (result) {

and this is - controller:
public ActionResult EditLang(long id, int langId)
    POIs_Lang result = db.POIs_Lang.Where(d => d.POIId == id && d.LanguageId == langId).Include(s => s.POIs).FirstOrDefault();
    if (result == null)
        result = db.POIs_Lang.Create();
        result.POIId = id;
        result.POIs = db.POIs.Find(id);
        result.LanguageId = langId;
        result.Language = db.Languages.Where(l => l.LanguageId == langId).First();

    return View(result);
Member 11919288 31-Aug-15 8:57am    
ZurdoDev 31-Aug-15 9:15am    
404 not found means just that, the url is wrong.
Member 11919288 31-Aug-15 9:22am    
What needs to change the code ??
Which URL you are accessing?
Member 11919288 1-Sep-15 1:56am    
in my project:
solution "Check_in_Israel"
project- "CII.Web"
"/CII.Web/POI/EditLang?id=" + id + "וlangId =" + langId"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900