using cascading dropdown list i stored Country,State,City ID's in database. now i want display text of stored ID's in asp.net MVC using Ajax
Loading
using cascading dropdown list i stored Country,State,City ID's in database. now i want display text of stored ID's in asp.net MVC using Ajax
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaimin ShethiyaPosted Apr 23, 2024, 4:05 AM
Hello Soheb,
when your page is load at that time you need to fetch this dropdown data. and then after you fetch the listing page data at that time automatically shows, that text as well.
Thanks
Jignesh KumarPosted Apr 22, 2024, 11:19 AM
Please refer to your previous question, I have an answer
https://www.c-sharpcorner.com/Forums/cascading-dropdown-list35
Jayraj ChhayaPosted Apr 22, 2024, 10:02 AM
Hi,
To achieve this functionality, you can use Ajax to fetch the text values based on the selected IDs dynamically. Here's a high-level overview of the steps involved:
Controller code
Ajax Code
Default Country when page load