Dynamic Cascading Select List CRUD ASP .NET Core 6

preview_player
Показать описание
Dynamic Cascading Select List CRUD ASP .NET Core 6

In this ASP.NET Core Tutorial,
We will learn how to Create Dynamic Cascading Select List.
and populate the select list dynamically.

In Here We Have two Select Dropdown list.

The first select dropdown list has Country Names.
and the second select List has City Names.

When we select a Country From the Country Select list
The cities of the Selected Country will be loaded
in the cities select list from the Database using the AJAX Call.

Let us see How to create it.

Thank You.

TAGS

ASP.NET Core SelectList
ASP.NET Core Dynamic SelectList
ASP.NET Core DropDown List
Рекомендации по теме
Комментарии
Автор

so many thanks, I was needing to do a Dynamic Cascading on MVC using DotNet 8 but I can't find something that allow me that, but with your video and your code about how to do on DotNet 6, is a great help to me, thanks thanks

JoseLopez-oozd
Автор

Great Efforts Mr Aniz for this detailed video.

eintech
Автор

Thank You and Happy New Year. May God Bless You.

sujeevank
Автор

Very Good Tutorial, Thanks for the excellent source code.

purnarana
Автор

Thank you Aniz!! Always enjoy every video you post. Thank you for providing tutorials like this for us learners. I still haven’t seen you on Udemy yet ;)

bl
Автор

very nice, Thanks for the source code. it is working fine.

priyadarshini
Автор

I have a form where the model contains subcategories (a student model with many courses to add to the student model), these models should be selected from dynamically created cascading dropdown lists, do you have a tutorial for that?

falcongreens
Автор

Hi Aniz, Nice tutorial as always. I have a suggestion to make here. Can you use ES6 javascript to code as jquery is old. Also hard coding the JS function in the HTML element is also considered a bad practice. Add Event Listener instead.

countrydl.addEventListener("change", () => {
let countryID = countrydl.value;
LoadStates(countryID);
});

You can empty the Select List / DDL this way:
option').forEach(option => option.remove());


Modern way of coding things.

Xmukherjee
Автор

Thanks Aniz it helped me alot with my school project. I have a question, i created login and register throw new scaffolded item, identity but i cant figure out how to connect it to this same database?

frankraad
Автор

I enjoy the video, but there is a link to the source code during the lesson. The issue is that the link is not working,
or have you moved it?
I have an error, so I have to see if it's a typo or something else,
Is it possible to get it?

Thanks
Erik G

Erik-jynd
Автор

Hi Aniz, I am one of big fan and subscriber who's enjoying watching your videos and honestly get me tackle some real problems. I was looking for a way to contact you, I got question regarding one of the technique you taught us and I really need to understand it much deeper in order to complete one of my advanced training project. I checked you on every angle without success. Once I get notification that you uploaded another video I said thanks God maybe it could be a way to reach you. I will appreciate once you will ping me. Thanks in advance.

ramadhanikazyoba
Автор

Hi Codes, Source code can't be download, 404 error.

jiangws
Автор

Introducing FOREIGN KEY constraint on table 'Customers' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.

omerucansu
Автор

Thank you Aniz, i tried ur amazing code. But when i delete the customer, there is error msg "cannot insert the value null into column code table countries". And i have no idea how to fix it. Could u help me?

ocha
Автор

sir, when downloading the source code it makes not secure and can't download
kindly provide any way to get the code

TogetherUs