I have a dropdown which will bind all the countries to it i need to add select and bind all the countries from database along with select as first value in dropdown. If you need StoreID its StoreID="stCountries"
Loading
avairPosted May 25, 2023, 11:35 AM
It as to be achieved only through javascript
Vishal YelvePosted May 25, 2023, 10:54 AM
Hi Avair,
try this,
In codebehind page
avairPosted May 25, 2023, 9:22 AM
I will have the data in this way in db
ID Countries States
1 India AP
2 India Telanagana
3 India UP
4 India MP
5 US Newyork
5 US Albama
5 US Texas
Instead of binding india,US, ...... 4 times,3 times it should get bound only once to the dropdown
Amit MohantyPosted May 25, 2023, 5:26 AM
Try this:
Naimish MakwanaPosted May 25, 2023, 5:15 AM
Try below:
Vishal YelvePosted May 25, 2023, 3:46 AM
Hi Avair,
do refer below link
https://www.c-sharpcorner.com/blogs/bind-dropdown-using-jquery-ajax
Rajkiran SwainPosted May 24, 2023, 5:49 PM