How to show checkboxlist horizontally in c#

Category > ASP.NET || Published on : Friday, August 29, 2014 || Views: 12056 || checkboxlist horizontal checkboxlist horizontal checkboxlist horizontally in c#

In this Tutorial we are going to learn to to show checkboxlist horizontally in c#

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 to show checkboxlist horizontally in c#

So lets starts the coding.:-)

Step 1: First, we start by creating an Empty ASP.NET web site in Visual Studio .NET 2010. The AJAX Extensions (from Microsoft) make it a whole lot easier to create AJAX web pages


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" %>

"Head1" runat="server"> checkboxlist horizontal

    "form1" runat="server">

class="auto-style2">how to show checkboxlist horizontally in c#

"550" align="left" color="Gainsboro" />

"CheckBoxList1" runat="server" AutoPostBack="true" BorderWidth="1" BorderColor="LightGray" RepeatDirection="Horizontal"> "" Value="1"> "c sharp" Value="2"> "wcf" Value="3"> "wpf" Value="4"> "" Value="5">

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

So, In this tutorial we have learned, How to show checkboxlist horizontally in c#

Download Source Codes