Home > ASP.Net > Insert checked item in CheckListBox

Insert checked item in CheckListBox


try this example to loop on Checked item(s) in CheckListBox and Insert them in Database   

public int Add_Project_Applications()
        for (int i = 0; i < cbx_Application.Items.Count ; i++)
            if (cbx_Application.Items[i].Selected)
               obj_Project_Applications.Application_Id =int.Parse(cbx_Application.Items[i].Value);
               obj_Project_Applications.Project_Id =int.Parse( lbl_Project_Id.Text);
        return rows;

Good Luck

Categories: ASP.Net
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: