Link to home
Start Free TrialLog in
Avatar of GlobaLevel
GlobaLevelFlag for United States of America

asked on

vb.net - on page load controls populate based on MS SQL 2005 query

Looking for code that poulate checkboxes or radioboxes based on a query from ms sql 2005 query.

Select first_name from address where id = "us"

if the number returns 12 then populate the form with 12 checkboxes or radioboxes...

then a submit button at bottom of form so user can choose howmany firstnames they want to choose for the invite...
Avatar of John (Yiannis) Toutountzoglou
John (Yiannis) Toutountzoglou
Flag of Greece image

You can add a column in you SQL table with bit datatype.the bit when it is populated in a form (datagridview or details view) it gives a check box.then when you update your selections you automatically gain what you want
Also you can have multiple selections only with checkboxes.
ASKER CERTIFIED SOLUTION
Avatar of supersugar
supersugar
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial