Skip to content
Loading
+5
  • Rijwan Ansari
    +4
    Check this article.
     
    https://www.c-sharpcorner.com/UploadFile/sourabh_mishra1/cascading-dropdownlist-in-Asp-Net-mvc/ 
    +4
  • +3
    both the senerio doesnt work for me.
    +3
  • Sachin Singh
    +3
    How many filters are you passing from controller to view? If you are passing just the Brand then Jquery Ajax should be your approach with partial view on server side.
    Otherwise, explain more about the scenario. 
    +3
  • +3
    i have a dynamic dropdown list of model of cars.if i select maruti or Tata then it will show list of maruti cars
    +3
  • Sachin Singh
    +3
    Then
    1.     
    Where the query string name 'brand' should match to your brandId name in filter class. If in the filter class it is brandId then use "/Controller/CarList?brandId="
    +3
  • +3
    query string name is brand not brandID
    +3
  • Gajendra Jangid
    +3
    Try Below Link
     
    https://www.c-sharpcorner.com/article/asp-net-mvc-passing-data-from-controller-to-view/#:~:text=from%20the%20ViewData.-,The%20other%20way%20of%20passing%20the%20data%20from%20Controller%20to,model%20class%20in%20return%20view.&text=Import%20the%20binding%20object%20of,access%20the%20properties%20by%20%40Model. 
    +3