Checkboxlist in asp.net(control example)

Checkboxlist in asp.net(control example)



In this Example of asp.net web programming today we describe checkboxlist control.

Control Checkbox list  related  post :


Checkboxlist Example:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Asp_net_checkboxlist.aspx.cs" Inherits="Asp_net_checkboxlist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
     <h2>
        checkboxlist control asp.net Example:</h2>
    <p>
        <asp:CheckBoxList ID="CBL1" runat="server" Height="177px"
            style="font-weight: 700; font-family: Arial, Helvetica, sans-serif; font-size: large">
            <asp:ListItem >opt1</asp:ListItem>
            <asp:ListItem>opt2</asp:ListItem>
            <asp:ListItem>opt3</asp:ListItem>
            <asp:ListItem>opt4</asp:ListItem>
        </asp:CheckBoxList>
    </p>
    <p>
        <asp:Label ID="Lbl1" runat="server" style="font-weight: 700; color: #FF0000"></asp:Label>
    </p>
    <p>
        <br />

        <asp:Button ID="Btn1" runat="server" Text="check" onclick="Btn1_Click"
            style="font-weight: 700" Width="93px" />
        &nbsp;</p>
    </div>
    </form>
</body>
</html>
 
Checkboxlist in asp.net(control example)
Checkboxlist in asp.net

Other Asp.net Example:

Comments

Popular posts from this blog