Asp.net programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this Asp.net and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Asp.net Website by URL, How to Play YouTube Videos in Asp.net by using Jquery , Jquery Change div background on mouseover in asp.net , JQuery UI Datepicker (Calendar) etc.

Sunday, August 24, 2014

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:

No comments:

Post a Comment