ListBox Total information's
- source
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="listbox18_9.WebForm1" %>
<!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>
<asp:ListBox ID="ListBox1" runat="server" Font-Bold="True" Font-Italic="True"
Font-Names="Bahnschrift Light Condensed" Font-Size="Large" ForeColor="#3399FF"
Height="100px" SelectionMode="Multiple" Width="100px">
<asp:ListItem>--Citys--</asp:ListItem>
<asp:ListItem Value="1">Rajkot</asp:ListItem>
<asp:ListItem Value="2">Pune</asp:ListItem>
<asp:ListItem>surat</asp:ListItem>
<asp:ListItem>delhi</asp:ListItem>
</asp:ListBox>
<br />
<br />
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="submit" />
</div>
</form>
</body>
</html>
- code
using System;
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="listbox18_9.WebForm1" %>
<!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>
<asp:ListBox ID="ListBox1" runat="server" Font-Bold="True" Font-Italic="True"
Font-Names="Bahnschrift Light Condensed" Font-Size="Large" ForeColor="#3399FF"
Height="100px" SelectionMode="Multiple" Width="100px">
<asp:ListItem>--Citys--</asp:ListItem>
<asp:ListItem Value="1">Rajkot</asp:ListItem>
<asp:ListItem Value="2">Pune</asp:ListItem>
<asp:ListItem>surat</asp:ListItem>
<asp:ListItem>delhi</asp:ListItem>
</asp:ListBox>
<br />
<br />
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="submit" />
</div>
</form>
</body>
</html>
Comments
Post a Comment