This article shows how to show or print the selected data of a checkboxlist inside a textbox in ASP.NET.
We took one bound checkboxlist and a TextBox. When the user checked a checkbox and clicks the button for it, the selected data will be entered into the TextBox.Initial ChamberStep 1
Open your Visual Studio 2010 and create an Empty Website, provide a suitable name (CheckBoxList_demo).Step 2
In Solution Explorer you get your empty website, then add two web forms and a SQL Server Database as in the following.For Web Form:CheckBoxList_demo (your empty website) then right-click then select Add New Item -> Web Form. Name it Autocomplete_demo.aspx.For SQL Server DatabaseCheckBoxList_demo (your empty website) then right-click then select Add New Item -> SQL Server Database. (Add a database inside the App_Data_folder).DATABASE CHAMBERStep 3
In Server Explorer, click on your database (Database.mdf) then select Tables -> Add New Table. Make the table like this.
Table tbl_data (Don't forget to make ID as IS Identity -- True). We had embed some data in the table tbl_seo. To do that just go to your table then right-click then select Show Table Data then enter your data in the given field.Design ChamberStep 4
Open your CheckBoxList_demo.aspx file from Solution Explorer and start designing you're application as in the following:
Hands on ASP.NET GridView