jQuery.POST - pass another parameter with Form.Serialize() - Asp.net MVC 3

后端 未结 3 2068
遇见更好的自我
遇见更好的自我 2021-02-10 11:16

As I am working on Asp.Net MVC Application, in my application I am using jQuery.POST method to submit a form.

e.g.

jQuery.post(\'/Product/Sa         


        
3条回答
  •  粉色の甜心
    2021-02-10 12:05

    How about:

     var url = '<%= Html.BuildUrlFromExpression(c => c.Save(":productId")) %>';
    

    You could later replace the url with the actual value in your post URL.

     url.replace(':productId', $productId);
    

提交回复
热议问题