First, I am using ASP.NET Core 3.1 MVC.
I have a table which contain Class wise Subject list.
Example- Class 8 (Maximum 5 subject can be taken by student), have subject A, B, C,D, E, F, G, H, I, J
Different School/College provides different subject/subject combination for this class. For Example - In Some School/College, In Class-8 subject D is not available, or some other School/College, In Class-8 subjects E, F are not available.
So, School Have to enter the subject they taught in each class. In Create Action (GET) method "List of Class" is shown in Dropdown list. After selecting a Class (For Example, Class 8) and click on Search option, It will show all available Subject for that particular class, Then School/College select the subjects which is available in that School/College and Save(POST Method) it to database.
How do I implement this Search functionality in Create page action method ?
Graphical representation:-
Select Class -----1,2,3,4,5,6,7,8,9,10,11,12,13 (DropDownList) [Search Button]
Select any class then click search. Then List of Subject Shown below in checkbox
Subject 1[checkbox]
Subject 2[checkbox]
Subject 3[checkbox]
Subject 4[checkbox]
Subject 5[checkbox]
Subject 6[checkbox]
Subject 7[checkbox]
Subject 8[checkbox]
Subject 9[checkbox]
Subject 10[checkbox]
Subject 11[checkbox]
Subject 12[checkbox]
Back To List [Button] Save [Button]