How to bind Country, State, City Dropdownlist in mvc using ajax

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • This video describe how to bind Country,State and City droprdown in Asp.net MVC using Jquery and AJAX. For find step to step tutorial and Source code please fallow below link:
    tutorialslink.c...
    ~-~~-~~~-~~-~
    Please watch: "How to Perform Global Exception Handling in ASP.NET CORE MVC"
    • How to Perform Global ...
    ~-~~-~~~-~~-~

ความคิดเห็น • 22

  • @CsharpSpace
    @CsharpSpace  7 ปีที่แล้ว

    For full Source Code and step to step tutorials Visit: tutorialslink.com/Articles/How-to-create-multi-level-menus-dynamically-in-Aspnet-MVC/23

  • @isairuvalcaba6907
    @isairuvalcaba6907 5 ปีที่แล้ว +1

    excelent tutorial.

  • @marcusshamase2050
    @marcusshamase2050 5 ปีที่แล้ว

    For those who will use the code for uploading it on the server like azure. Please kindly add on the script for example
    $.get('@Url.Action("Gender_Bind", "Request")', { Service_id: id }, function (data)

  • @prasunjeetsoni6143
    @prasunjeetsoni6143 5 ปีที่แล้ว

    Thanks buddy it works but I have to change the some code in jquery ... Json Result could not appeded to Select control
    $("#course").append($("").val(v1.Value).html(v1.Text));
    rest of the things were same..

  • @adilkevin6220
    @adilkevin6220 5 ปีที่แล้ว

    Complete employee registration form I need using entity framework single stored procedure with countrycode, statecode,citycode being foriegn key of employee master table with all the possible crud operations

  • @harirajanala9865
    @harirajanala9865 5 ปีที่แล้ว

    How To Call These Same Drop downs And To Save Into Another Variables(Like Current And Permanent Address)

    • @CsharpSpace
      @CsharpSpace  5 ปีที่แล้ว

      Just get the value by form collection and save their value

  • @madanapalikishore7384
    @madanapalikishore7384 7 ปีที่แล้ว

    Sir..Thanks for ur example..sir if we want to post these 3 dropdownlist data into data base?what is the procedure pls give reply

    • @CsharpSpace
      @CsharpSpace  7 ปีที่แล้ว

      Use form collection for this like, Firstly create post method for that view and then pass Form collection object as parameter Eg.
      public ActionResult Add_data(FormCollection fc)
      {
      string dropdownvalue= fc["dropdown name"];
      }

    • @vaibhav96627
      @vaibhav96627 7 ปีที่แล้ว

      how can i set selected value while modifying country state city into database

  • @Ravi-ws3qb
    @Ravi-ws3qb 7 ปีที่แล้ว +1

    sir can you update video ......... how to bind drop down list in edit view ......like show in this video ....

    • @CsharpSpace
      @CsharpSpace  7 ปีที่แล้ว +1

      yes in few days i uploade video for edit section

  • @akshitkapoor1039
    @akshitkapoor1039 ปีที่แล้ว

    tysmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

  • @abrarafridiofficial2751
    @abrarafridiofficial2751 6 ปีที่แล้ว

    sir how to it through using ASP.NET MVC5 ADO.NET Approach Not Entity FrameWork ????

    • @CsharpSpace
      @CsharpSpace  6 ปีที่แล้ว

      +abrar kust this example using ADO. NET check that

    • @abrarafridiofficial2751
      @abrarafridiofficial2751 6 ปีที่แล้ว

      thanks sir g...i am .net developer

  • @dgtal2926
    @dgtal2926 7 ปีที่แล้ว

    Another one. Sr. what can we do with the result in the third dropdownlist?

    • @CsharpSpace
      @CsharpSpace  7 ปีที่แล้ว

      +Dixon Gutierrez third dropdown is last so nothing to do with the value of last dropdown, simply save their value in database

    • @dgtal2926
      @dgtal2926 7 ปีที่แล้ว

      Csharp Space thank you, the video doesnt show how, but I found another one. I believe the value of the last DDL can be used in many manners, for instance I can use it to navigate around using url, now I need it to populate some textboxes depending on this last value.

    • @CsharpSpace
      @CsharpSpace  7 ปีที่แล้ว +1

      Dixon Gutierrez find this link for step to step description and source code : tutorialslink.com/Articles/Bind-Country-State-and-City-Dropdownlist-in-Aspnet-MVC-using-ajax/21

  • @girishiche3499
    @girishiche3499 7 ปีที่แล้ว

    its giving an error on browser console that...... $(...).va is not a function

    • @CsharpSpace
      @CsharpSpace  7 ปีที่แล้ว

      +Girish Iche check jquery file link in your view