Using AJAX to return SelectList selected value
        Posted  
        
            by 
                Adventure
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Adventure
        
        
        
        Published on 2011-01-08T00:49:25Z
        Indexed on 
            2011/01/08
            0:53 UTC
        
        
        Read the original article
        Hit count: 219
        
asp.net-mvc
|asp.net-ajax
At risk of asking the obvious... I need to use AJax.ActionLink to send the current value of a SelectList back to my controller. How do I do that?
Below is part of my current View. I need to replace "15" with the current value of the SelectList.
<% If Model.ShoppingListNames IsNot Nothing Then%>
    <%: Html.DropDownList("ShoppingListNames", Model.ShoppingListNames)%>
    <%: Ajax.ActionLink("Add to List", "AdjustMaterials", "Docs",
                        New With {.userDocId = 15, .prodId = Model.ID, .quantity = 1},
                        New AjaxOptions With {.OnSuccess = "handleUpdate"})%>
<% End If%>
© Stack Overflow or respective owner