How to show asp.net checkboxlist horizontally in asp.net c#

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


Introduction:-
In this Tutorial we are going to learn to to show asp.net checkboxlist horizontally in asp.net c#

Description:-
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 asp.net checkboxlist horizontally in asp.net 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


http://www.sourcecodehub.com/articleimages/ajax-timer-control-in-aspnet/Create-website-visual-studio-1

Create-website-visual-studio-new-website2


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

add-new-webform-visual-studio-3

add-new-webform-visual-studio-add-name4

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

<%@ Page Language="C#" AutoEventWireup="true" %>




"http://www.w3.org/1999/xhtml">
"Head1" runat="server">
    asp.net checkboxlist horizontal
    


    "form1" runat="server">
        

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


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

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


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


Conclusion:
So, In this tutorial we have learned, How to show asp.net checkboxlist horizontally in asp.net c#

Download Source Codes