Click here to Skip to main content
15,893,923 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There can be more than one subjects in a course. After filling the form, and saving first subject in a course a popup dialog box open asking if there are anymore subjects to capture, if yes, group box for subjects must be cleared to allow for another entry

Case is, with the code i have this can happen only if i did not set a primary key, and if i do, it makes duplicate error message
Posted
Comments
Richard MacCutchan 30-Jan-15 5:29am    
Show your code and indicate where the error message occurs.
Sinisa Hajnal 30-Jan-15 7:34am    
Redesign. Make subjects for the course a list (using listbox or even gridview) and in the database make subjects separate table with FK toward course table...that way you don't have to parse anything, just return what you need from the database. Also, indicate if this is web or winform or WPF app. Thank you.
ZurdoDev 30-Jan-15 7:52am    
Do you have a question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900