jQuery post to another controller
        Posted  
        
            by griegs
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by griegs
        
        
        
        Published on 2010-04-23T00:13:40Z
        Indexed on 
            2010/04/23
            0:23 UTC
        
        
        Read the original article
        Hit count: 785
        
asp.net-mvc
|jquery-ajax
If I have a Controller called "HomeController" and I'm on the Index page of that controller, how can I do a jQuery Ajax post to another controller.
I tried the below,
    $.post("/DetailedQuote/jQueryGetDetailedQuote", { productCode: "LPJ" }, function(newHTML) {
        alert(88);
    });
I have a DetailedQuoteController.
I have also tried;
post("DetailedQuote/
post("DetailedQuote.aspx/
post("/DetailedQuote.aspx/
post("/DetailedQuoteController/
post("DetailedQuoteController/
post("DetailedQuoteController.aspx/
post("/DetailedQuoteController.aspx/
And still no joy.
I should also mention that this is running a Hybrid WebForms and MVC site on IIS 6.
© Stack Overflow or respective owner