Click here to Skip to main content
15,898,939 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I want to populate dynamic checkboxes with the database, it should populate after checking an existing checkbox in the page.

this is my database from which i have to populate. can any 1 help me asap.

SQL
create table subdisease
(subd_id int primary key,
parent_id int foreign key references maindisease (parent_id),
subdisease_name varchar(30))
Posted
Updated 21-May-12 8:28am
v2
Comments
[no name] 21-May-12 10:30am    
What have you tried so far?
Zoltán Zörgő 21-May-12 14:57pm    
A checkbox is usually assigned to a boolean (dual-state) field. This table definition contains no such field.

If I read your mind correctly :) you have a table with diseases. You want to let the user assign some of these diseases to a patient by presenting him a list of them with a checkbox for each. When the user commits the form, you want to have a relation between the checked ones and the patient. Am I right?

First of all, what platform do you use? WindowsForms, WebForms, MVC, WPF, Silverlight,...? The "page" could be an asp.net form?
shabadiveda 25-May-12 0:32am    
Am having a checkbox which represent a main disease for ex, Cardiology,if a user check tat checkbox, dynamically it should create checkboxes which represents subdisease r subprocedure like ECG, which wil be binded from database. I got dynamic chkboxes bt am not getting how to bind those dynamic checkbox from database. Hope u Uunderstood.am using visual studio 2008, with mssql server 2005. plz help me.
shabadiveda 28-May-12 5:15am    
Am having a checkbox which represent a main disease for ex, Cardiology,if a user check tat checkbox, dynamically it should create checkboxes which represents subdisease r subprocedure like ECG, which wil be binded from database. I got dynamic chkboxes bt am not getting how to bind those dynamic checkbox from database. Hope u Uunderstood.am using visual studio 2008, with mssql server 2005. plz help me. its urgent..plz...
shabadiveda 2-Jun-12 0:04am    
i solved by myself....thanx 4 ur suggestions

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