Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

i need the urls to match pleae

$
0
0

Hi guys i need this url to match the one below.   
     $.ajax({
                 url: '<%: Url.Action("UpdateFlags", null, new RouteValueDictionary{{Model.ParentId.ToString(), Model.Page }})%>',
            data: results,
            success: function (data) {
                alert(data.success);
            },
            error: function () {
                alert("error");
            }
        });




with this


 <% using (Ajax.BeginForm("UpdateFlags", null,
          new RouteValueDictionary(new { Model.ParentId, Model.Page }),
          new AjaxOptions() { UpdateTargetId = "testflag123"},
          new Dictionary<string, object> { { "data-ajax-mode", "CALLBACK" }, { "data-ajax-update-callback", "updateUploader" }, { "id", "testflag123" } }))
       {%>


Viewing all articles
Browse latest Browse all 5678

Trending Articles