[CLOSED] MVC Force Post

  1. #1

    [CLOSED] MVC Force Post

    When Setting up a proxy, how do I force the Ajax to POST and not GET?

    Example:
    .Proxy(Sub(proxy)
                                                                                         proxy.Add(Html.X.AjaxProxy().Url(Url.Content("~/Assignments") + "/_GetTeams/" + MvcApplication.CurrentApplicationUser.EmployeeID.ToString()) _
                                                                                                     .Reader(Sub(rdr)
                                                                                                                     rdr.Add(Html.X.JsonReader().Root("Data"))
                                                                                                             End Sub) _
                                                                                                         .Writer(Sub(wrtr)
                                                                                                                     wrtr.Add(Html.X.JsonWriter().Root("Data"))
                                                                                                             End Sub))
                                                                                 End Sub) _
    Last edited by Daniil; May 18, 2012 at 4:55 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please set up ActionMethods Read.

    Example (C#)
    .Proxy(proxy =>
        proxy.Add(Html.X().AjaxProxy()
            .ActionMethods(methods =>
                methods.Read = HttpMethod.POST  
            )
        )
    )
  3. #3
    Weird. I don't have an "ActionMethods" method from the AjaxProxy object. Was this in since the beta release or was this added with the RC version?
  4. #4
    Seems it was added after Beta release. So, please update from SVN.

Similar Threads

  1. Replies: 0
    Last Post: Aug 14, 2012, 2:54 PM
  2. Replies: 0
    Last Post: Aug 14, 2012, 2:48 PM
  3. [CLOSED] Force a postback
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 01, 2012, 6:01 PM
  4. [CLOSED] force do layout for all panel
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 01, 2011, 9:35 AM
  5. Replies: 3
    Last Post: Jan 13, 2010, 3:07 AM

Tags for this Thread

Posting Permissions