Тёмный

Cascading Dropdownlist In Asp.Net MVC | Using Jquery Ajax 

abctutorial
Подписаться 11 тыс.
Просмотров 112 тыс.
50% 1

Blog Post Link
→ abctutorial.com/Post/26/how-to...
"Cascading Dropdown Using Jquery In MVC"
======================================================
In This Video Tutorial I Am Going To Show You,
Cascading Drop Down List From Database In ASP.NET MVC Using Jquery Ajax
I Hope This Is A Nice Tutorial For You And You Enjoy This Video , So Must Watch This Video ✪ ✪ ✪
• Cascading Dropdownlist...
Working Process :
00:05
Show Expected Output
00:29
Step 1 : Create A Database Table
00:57
Step 2 : Click On Visual Studio Create A New Project
01:22
Step 3 : Connect Your Database.
02:46
Step 4 : Create A New Class
03:32
Step 5 : Create A Controller (This Video I am Use Default Controller) Write Code For Pass Database Data For Cascading.
05:20
Step 6 :Create A View (This Video I am Use Default View) Write Code For Receive Data And Displaying It.
14:01
Step 7 : Add A New Method In Your Controller Write Code For Receive Selected Country Id(In This Video) And Compare With Database Data The Return Similar Data According To Country Id.
15:11
Run Project
Connect With Us:
Facebook: / abctutorialbd
Twitter: abctutorialbd?lan...
GooglePlaus: plus.google.com/u/0/102073812...
Subscribe And Watch The Video Again:
• Cascading Dropdownlist...
Tags:
ASP.NET MVC Framework (Software), Cascading Combo Box, Cascading Drop Down, ASP.NET MVC 4, How To,jquery cascading dropdown database, jquery asp.net cascading dropdown, jquery cascading dropdown asp.net, jquery cascading dropdown list in asp.net with example,cascade dropdown in mvc, cascading dropdown using jquery, bind states by country, dropdown cascading in asp.net mvc, partial view, populate state by country, get states by country, mvc, asp.net mvc tutorial, state, country, option, append, remove, dropdown, asp.net mvc 5

Опубликовано:

 

27 май 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 145   
@dalimmohammad1614
@dalimmohammad1614 6 лет назад
Thank vai. Onekkhon chesta kore youtube a ase tmr tai prothome dekhlam and kaj hoye geche. Thanks a lot.
@abctutorial
@abctutorial 6 лет назад
Thnxs vai .......... Pase thakben asa kori aro exciting videos niye asbo inshallah ..........keep us subscribe ........ stay touched www.fb.com/abctutorialbd
@robinalejandrorojas
@robinalejandrorojas 5 лет назад
Excelente vídeo, muchas gracias por la explicación.
@abctutorial
@abctutorial 5 лет назад
Gracias por tu comentario ... mantennos suscrito
@josueabad9142
@josueabad9142 6 лет назад
thank you for sharing your knowledge, it was very helpful
@abctutorial
@abctutorial 6 лет назад
Thanks for your comment ...... Keep us subscribe we are creating lot of exciting videos ......... You can also watch this (related video) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-beSvvGhocJI.html&lc=z223e1w4hwjvwjffzacdp431pvaq5sfcfqcu0dovgolw03c010c
@ProCarRacer13
@ProCarRacer13 5 лет назад
Life saver! Thanks a million!
@abctutorial
@abctutorial 5 лет назад
Welcome keep subscribe
@sachingreat222
@sachingreat222 6 лет назад
Nice tutorial
@DeepakShaw
@DeepakShaw 2 года назад
Excellent work.. I could able to follow and run successfully, Thanks
@abctutorial
@abctutorial 2 года назад
Glad it helped
@kubalone
@kubalone 6 лет назад
thanks, it was very helpfu!
@abctutorial
@abctutorial 6 лет назад
thanks for watching ........ keep subscribe and stay connect with us.........we are creating more exciting tutorial..
@giahuyletran7622
@giahuyletran7622 3 года назад
Thankyou very much! Great tutoria
@abctutorial
@abctutorial 3 года назад
You're very welcome!
@testoflix
@testoflix 4 года назад
I did the program I couldn't do for 1.5 hours. Thanks man!
@abctutorial
@abctutorial 4 года назад
subscribe
@abdelrahmangebril1388
@abdelrahmangebril1388 3 года назад
thank you so much , You have done an awesome job. it helps me a lot
@abctutorial
@abctutorial 3 года назад
You are welcome!
@daalwada
@daalwada 4 года назад
Awesome! Thanks you so much sir.
@abctutorial
@abctutorial 4 года назад
Thank you.. Keep subscribe
@esrauctepe8619
@esrauctepe8619 6 лет назад
Super :)
@tranphuongquan1907
@tranphuongquan1907 6 лет назад
thank you for sharing your knowledge, it was very wonderful
@abctutorial
@abctutorial 6 лет назад
Thnxs for your comment ......... We coming with more exciting videos ....... Keep us subscribe...........
@bloodeyhell7026
@bloodeyhell7026 6 лет назад
The funny thing is asp.net webforms would have handled this perfectly with update updanel control. but the wrold wants to move from automatic to manual.
@abctutorial
@abctutorial 6 лет назад
Da Prodigy ...Maybe but ASP.NET MVC provide you to control everything of your project on your way as well as for highly customized application ......... thnxs for being with us
@rizshadowgamer5015
@rizshadowgamer5015 2 года назад
Working Fine thanks sir
@kenmtb
@kenmtb 2 года назад
Nice work, the code really helped. Thanks
@abctutorial
@abctutorial 2 года назад
Glad it helped
@dhruva8777
@dhruva8777 11 месяцев назад
Thq bro The code is working
@serkanparlak1019
@serkanparlak1019 7 лет назад
eline sağlık harika olmuş
@abctutorial
@abctutorial 7 лет назад
thnxs for your comment ...... but if possible please comment with english
@vh47zdF120
@vh47zdF120 3 года назад
Salam Brother, Its Good
@MdARShuvo
@MdARShuvo 6 лет назад
Thanks a lot. bro.......
@abctutorial
@abctutorial 6 лет назад
Welcome ...... keep us subscribe .........
@Jbergawane9
@Jbergawane9 4 года назад
Many thanks.
@abctutorial
@abctutorial 4 года назад
You are welcome! Keep subscribe. Please add post for solution to our community facebook.com/groups/1277069242439068/
@salalhamza3475
@salalhamza3475 5 лет назад
Hi! Can we handle this type of situation in data annotations???
@FashionStyle16SMV
@FashionStyle16SMV 4 года назад
excelente video, una pregunta cuando selecciono el primer dropdown se llena el segundo con los datos correspondientes al primero pero si vuelvo a seleccionar el primer dropdown al segundo se le agregan los de la segunda seleccion y aparecen los de la primera seleccion y los de la segunda como se podria actualizar o limpiar el segundo dropdown ?
@labebe2197
@labebe2197 6 лет назад
Thanks!!!!
@abctutorial
@abctutorial 6 лет назад
Thnxs a lot........... keep us touched we will coming soon with more exciting videos
@shubhamrawal3229
@shubhamrawal3229 5 лет назад
Sir, You have done a really great work. It is my humble request could you please tell how to save the values from the dropdown list to table the database in order to use further. It would be very grateful if you reply.
@abctutorial
@abctutorial 5 лет назад
after selecting dropdown then do it like normal save.Just get the parameter value and set it to model and save it.
@adeelasghar7057
@adeelasghar7057 4 года назад
Sir, You have done a really great work. It is my humble request could you please tell how to save the selected values from dropdown list to another table the database in order to use further. It would be very grateful if you reply.
@abctutorial
@abctutorial 4 года назад
You can follow my master detail video where i did this work[same value to different table saving]...Thanks and keep subscribe
@unangrioda
@unangrioda 4 года назад
wow nice
@abctutorial
@abctutorial 4 года назад
Thanks ... Keep subscribe
@tunalojistik2397
@tunalojistik2397 4 года назад
Tanks 👍👍👍👍
@abctutorial
@abctutorial 4 года назад
Thank you too
@bilalturabi2933
@bilalturabi2933 4 года назад
It Works for Me i used it for Category and Product ... (26/03/2020)
@abctutorial
@abctutorial 4 года назад
Thank you. Keep subscribe. Please add post for solution to our community facebook.com/groups/1277069242439068/
@shwetaotari6112
@shwetaotari6112 2 года назад
hello. same way i was doing dropdown for city, but its not working. can you please provide solution for same
@hunachigi9824
@hunachigi9824 3 года назад
Sir have u made any FK relationship bw Cid of country and Cid of state
@adolfovanegas7802
@adolfovanegas7802 5 лет назад
Buenas de antemano te doy las gracias por tomarte el tiempo de explicar este tema. He hecho todo igualito, paso por paso, al seleccionar un ítem del primero droplist , va al controlador, hago la pausa y veo que me busca la información, pero solo llega hasta allí, no entra al "each" para el llenado de datos, que puede estar pasando??, saludos y gracias.
@abctutorial
@abctutorial 5 лет назад
puede usarlo en su propio caso, lo que desee. Solo le doy una explicación simple para entender ... Thnxs
@anbuanbu6591
@anbuanbu6591 4 года назад
Edit mode how to bind casecading drop-down
@mndbj2878
@mndbj2878 Год назад
Sir could you please tell how to write code for creating cascading drop-downs with search button and display the details in grid view.
@chauhanshubham7835
@chauhanshubham7835 2 года назад
i am doing same thing for state and city table no country. my state values are visible in dropdownlist but city values are not visible after changing the state from drop downlist. pleas reply as soon
@harisulislam6302
@harisulislam6302 2 года назад
Sir, If have change the jquery. Now not working. Is is possible to work, on jwuery above version
@earlwood7826
@earlwood7826 4 года назад
Excellent Video!!! but how to reset the second dropdownlist when set at first value the first dropdownlist without Error?
@abctutorial
@abctutorial 4 года назад
Clear second textbox onchange of first textbox
@rizkyfirmansyah5544
@rizkyfirmansyah5544 4 года назад
Great Tutorial, Sir But what if i want to use the StateId as multiselect using chosen dropdown ?
@abctutorial
@abctutorial 4 года назад
You can use any id.....
@AmeyaKherodkar
@AmeyaKherodkar 7 лет назад
hi its a nice tutorial but it would have been asum if you would have shown how can we pass the dropdown value back to controller for saving into the database !!!!!
@abctutorial
@abctutorial 7 лет назад
You should just add a new Ajax Post method on click and pass the parameter(value).... thnxs for you comment and keep subscribe .........
@waqarmehmood5871
@waqarmehmood5871 6 лет назад
Brother, I just want to know that my second dropdownlist not showing values against first dropdownlist selected value. Please Help !
@abctutorial
@abctutorial 5 лет назад
Sorry dear i didn't reply you on time! you can ask me anything any time
@mohamedfazlim2527
@mohamedfazlim2527 6 лет назад
First of all thanks for your response. i have manged to code all what you have managed to demo on video. i can retrieve the both the dropdownlist values but unable to transfer to it to controller. Also after pressing the submit button page get resetted. how to resolve this concerns.
@abctutorial
@abctutorial 6 лет назад
You Can See Our CRUD Video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-khwgTZ_6EwU.html......... If you still facing problem please let us know and send us ur code
@mohamedfazlim2527
@mohamedfazlim2527 6 лет назад
thanks a lot. first i will go through CRUD Videos and get back to you.
@abctutorial
@abctutorial 6 лет назад
ok.......
@_Sumeet
@_Sumeet 6 лет назад
Could you please tell how would you modify the javascript if the drop down for the 'Country' was in the Main view and the dropdown for 'State' was in a partial view (rendered by the Main view)? Thank you! I appreciate your time
@abctutorial
@abctutorial 6 лет назад
Thanks for your comment.........This is not matter that where your child drop down is locate.But you should render the partial view from Main view(where country is locate).If you wants to use JavaScript into partial view then it will work also on Main view........... Keep subscribe ...... We are coming within more exclusive video..........
@_Sumeet
@_Sumeet 6 лет назад
Thanks! What I have is 2 dropdowns in the main view and 1 drop-down in the partial view. the 1st drop down decides the values in the 2nd one (both in Main View) and the 2nd one decides the values in the 3rd dropdown (in Partial View). So when the values in 1st are changed, it should populate both the 2nd and the 3rd drop-dow lists, but only the 2nd is populated. the one in partial view is not populated.
@abctutorial
@abctutorial 6 лет назад
No... 3rd drop down will load onchange of 2nd dropdown. But when you change 1st drop down then 3rd dropdown don't get any id from 2nd dropdown because you selected 1st dropdown.
@_Sumeet
@_Sumeet 6 лет назад
I get your point. the 2nd dropdown is changed when 1st one is changed, shouldn't this change in 2nd trigger a change in 3rd? Is there a way to make it behave this way?
@abctutorial
@abctutorial 6 лет назад
maybe you pass a parameter to get 3rd dropdown list.So without this specific parameter you are unable to get this specific 3rd list.But if you wants to get all data without filtering then it possible to load.But cascade dropdown impossible without selection ........
@ignaciogomez4132
@ignaciogomez4132 5 лет назад
how do I do the same but to load members of a family, in a table
@abctutorial
@abctutorial 5 лет назад
What will be your foreign key for master table?
@Dot-Nerd
@Dot-Nerd 6 лет назад
but what if i want to add these dropdowns to an existing view?
@abctutorial
@abctutorial 6 лет назад
Yes it is possible to load existing view like Edit view
@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
@abctutorial
@abctutorial 5 лет назад
Yes it is possible ........ if you need this kind of video please post your request to the group www.fb.com/abctutorialbd ......keep us subscribe
@madanapalikishore7384
@madanapalikishore7384 7 лет назад
can we pass the dropdown value back to controller for saving into the database
@abctutorial
@abctutorial 7 лет назад
Yes it is possible ......... You should just add a new Ajax Post method on click and pass the parameter(value).... thnxs for you comment and keep subscribe .........
@csyayaki09
@csyayaki09 6 лет назад
When i save the dropdown value in database it savez ID And not values wich refereces to ID's someone can help ?
@TutorialsMethod
@TutorialsMethod 6 лет назад
can you please write the code for me
@just_code
@just_code 4 года назад
can i use this technique for fill form input field?
@abctutorial
@abctutorial 4 года назад
Yes
@renzbautista1335
@renzbautista1335 5 лет назад
Im getting errors at 4:23 .. db.Countries.ToList(); to be exact The error is : Does not contain a definition of 'Countries' and no extension method... Please Help
@abctutorial
@abctutorial 5 лет назад
Please use ADO.NET entity data model
@dermigueimes
@dermigueimes 4 года назад
SALVOU A MINHA VIDA, AGORA CONSIGO ENTREGAR A PARTE FINAL DO MEU FREELAAAA, meu salario vai dobrar😥😥😥
@abctutorial
@abctutorial 4 года назад
Obrigado, continue se inscrevendo
@hoangle9672
@hoangle9672 4 года назад
@abctutorial
@abctutorial 4 года назад
Keep subscribe .. more videos are coming
@ranyaerrafaq2824
@ranyaerrafaq2824 6 лет назад
Hello, How can I select all cities from a country ??
@abctutorial
@abctutorial 6 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_ESKpILcziE.html You can watch this video tutorial....
@ThaoNguyen-us9dn
@ThaoNguyen-us9dn 3 года назад
I have 2 similer form, form 1: good, but form 2 don't run, please help me using Jquery Ajax for forms similer based on your video. thanks
@abctutorial
@abctutorial 3 года назад
Change id name different in Html
@derejebizualem2112
@derejebizualem2112 5 лет назад
Cascading Dropdown Control not working on IIS after deploying (publish) somebody plse healp me
@abctutorial
@abctutorial 5 лет назад
pls request me to our website then we will fix your problem ... www.abctutorial.com/Community
@matheusitooka3673
@matheusitooka3673 Год назад
try put your aplication's name in the URL like this: url: $.get("/YOUR_APLICATION_NAME/home/GetStateList"
@menardtorres3653
@menardtorres3653 2 года назад
why my state dropdown unidentified? and my index in script is not use color dark? how to fix it my value in state is unidentified thank u
@abctutorial
@abctutorial 2 года назад
Post on to get the solution facebook.com/groups/663936840427220
@harishassan8009
@harishassan8009 6 лет назад
#abctutorial i like it so much but i want to say please upload cascading list state country and city in this video only two drop down i need three drop down State select show Country then Country Select show city
@abctutorial
@abctutorial 6 лет назад
State might be after country .. Sequence should be country>State>city .... am i right???
@onlyhami
@onlyhami 5 лет назад
@@abctutorial yes ur right but how could we do that using "SelectList" . Need your little help "Country>State>City" ...
@abctutorial
@abctutorial 5 лет назад
@@onlyhami Please make a post of your expected topic on www.fb.com/abctutorialbd group ... we will make video on your request
@harisulislam6302
@harisulislam6302 2 года назад
One more , how to call dropdron list from db to layout page for all controler. I want to display branch list on layout pages that layout call on very viee pages
@abctutorial
@abctutorial 2 года назад
Post your problem here facebook.com/groups/663936840427220
@mohamedfazlim2527
@mohamedfazlim2527 6 лет назад
How to transfer the StateId & Value to Controller. Can you share the code
@abctutorial
@abctutorial 6 лет назад
Download Code Here...: drive.google.com/open?id=0B2Vcr6z2YsEWQkNYRlhaV0swWEk
@louburias9650
@louburias9650 4 года назад
can i used the same method in LINQ to SQL sir?
@abctutorial
@abctutorial 4 года назад
Yes you can
@louburias9650
@louburias9650 4 года назад
@@abctutorial Thank you sir but how can i get the 'selected value' by the user and send it to db?
@louburias9650
@louburias9650 4 года назад
May i know if the code will still work if i cant put the proxyEnabled?
@surajdhungana407
@surajdhungana407 4 года назад
Function(index,row) means??
@abctutorial
@abctutorial 3 года назад
see video properly u will get this properly
@user-jf5ii2zr2t
@user-jf5ii2zr2t 6 лет назад
?can it be MultiSelect
@abctutorial
@abctutorial 6 лет назад
u Can See This Video : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-JeawBGzSZYU.html
@trivenibalaganur6944
@trivenibalaganur6944 4 года назад
hiiii,,,,,,,,,this is very helpfull i need one more help from you.........fill textboxes when user clicks on dropdownlist using mvc and entity frameworks please help me anyone.......im a beginner of MVC
@abctutorial
@abctutorial 4 года назад
Please let us clear your question please
@trivenibalaganur6944
@trivenibalaganur6944 4 года назад
@@abctutorial how to do when user clicks on the dropdownlist....and data should be displayed on the textboxes using asp.net mvc and entity framework
@akhilnambiar9185
@akhilnambiar9185 5 лет назад
If it is ftom a single table what can i do
@abctutorial
@abctutorial 5 лет назад
If it is from single table then you should have parent-child relationship between them then you can only show parents in first dropdown box then after selection of first then child of this selected item will load
@akhilnambiar9185
@akhilnambiar9185 5 лет назад
@@abctutorial My table consist of id,asset,capacity,I need to select asset,based on its, corresponding capacity should come in next dropdown
@abctutorial
@abctutorial 5 лет назад
@@akhilnambiar9185 Please make sure how you will get parent child ?
@user-jf5ii2zr2t
@user-jf5ii2zr2t 7 лет назад
VERY NICE CLIP List CountryList = db.Countries.ToList(); WHERE DID YOU GET THE Countries FOR TOLIST ?
@user-jf5ii2zr2t
@user-jf5ii2zr2t 7 лет назад
plural and singular
@abctutorial
@abctutorial 7 лет назад
thnxs for your comment ..........Countries is list.
@user-jf5ii2zr2t
@user-jf5ii2zr2t 7 лет назад
Is it possible to do a regular fetch sentence? like select * from where order
@abctutorial
@abctutorial 7 лет назад
Yes it is possible .... Do like this To Return List:: List CountryList = db.Countries.Where(x=>x.CountryId==countryId).OrderBy(x=>x.CountryId).ToList(); To Return Single Model:: Country CountryModel = db.Countries.Where(x=>x.CountryId==countryId).SingleOrDefault();
@user-jf5ii2zr2t
@user-jf5ii2zr2t 7 лет назад
Thx
@pavanbirajdar2329
@pavanbirajdar2329 7 лет назад
nice video but voice is not there
@abctutorial
@abctutorial 7 лет назад
Thxs for watching ......... now we are not uploading with audio..... hope will future video ....... keep subscriebe
@jonnychanel6062
@jonnychanel6062 5 лет назад
it not Optimal when i use 3 selected. Because select number 2 auto create, it not .change(function) united states->California. i can't choose Amador City But i change California-> texas, then back to California, i can choose Amador City
@abctutorial
@abctutorial 5 лет назад
Please use 3rd level of cascade dropdown
Далее
best way out of the labyrinth🌀🗝️🔝
00:17
Просмотров 935 тыс.
Cascading Dropdowns in .NET Core (.NET 8)
22:15
Просмотров 19 тыс.
jQuery Ajax CRUD in ASP.NET Core MVC using Popup Dialog
59:47
jQuery Ajax In Asp.Net MVC - CRUD Operations Using JSON
1:21:13
How To Fill Dropdown in ASP.NET MVC
56:10
Просмотров 4,3 тыс.