How to add checkboxlist scrollbar in using c sharp

Category > VBVB.NET || Published on : Friday, August 29, 2014 || Views: 12508 || add checkboxlist scrollbar in using c sharp checkboxlist scrollbar checkboxlist scrollbar

In this Tutorial we are going to learn to add checkboxlist scrollbar in using c sharp.

In previous articles, I have explained you How to find datetime difference in milli seconds using ASP.NET using c# example , How to do Cross-Page Posting in Asp.Net and C# , How to use UpdateProgress control in Asp.Net and C Sharp , How to play YouTube videos in ASP.NET Web Application, How to develop a Simple Chat Application in C# Using SignalR
and now we are going to learn how to add scrollbar in checkboxlist.

So lets starts the coding.:-)

Step 1: First, we start by creating an Empty ASP.NET web site in Visual Studio .NET 2010.


Step 2: Create an ASPX Page for Right Click on Solution Explorer > Add Items > Web > Webform and save it as "Default.aspx".When we first open our Default.aspx page



Step 2: Now write the below codes in design mode.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="aspnet_checkboxlist_scrollbar_source_code.WebForm1" %>


"form1" runat="server">

"color: orange; font-style: italic;">How to add scrollbar in checkboxlist or checkboxlist scrollbar in csharp

class="line" />
class="block"> "CheckBoxList1" runat="server" RepeatLayout="Table">

Step 3: Now write the below codes in code behind.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace aspnet_checkboxlist_scrollbar_source_code
    public partial class WebForm1 : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            if (!Page.IsPostBack)
                string[] dotnet = {   
                                 "c sharp",  
                                 "sql server",  
                                 " mvc",  

                CheckBoxList1.DataSource = dotnet;

Step 4: Run the application by pressing F5.You will see the smiliar screenshot as below

So, In this tutorial we have learned, How to add checkboxlist scrollbar in using c sharp


Download Source Codes