[go: up one dir, main page]

0% found this document useful (0 votes)
37 views3 pages

Listbox Program

The document is an ASP.NET web page that creates a multi-selection list box for selecting courses. It includes a form with a list of courses such as BCA, BBA, BCS, BSC, and BCOM. The list box is set to allow multiple selections and triggers a postback when an item is selected.

Uploaded by

Dk P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views3 pages

Listbox Program

The document is an ASP.NET web page that creates a multi-selection list box for selecting courses. It includes a form with a list of courses such as BCA, BBA, BCS, BSC, and BCOM. The list box is set to allow multiple selections and triggers a postback when an item is selected.

Uploaded by

Dk P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Q1.List Box.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="listBox.aspx.cs" Inherits="listbox.listBox" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title></title>

</head>

<body>

<form id="form1" runat="server">

<div>

<center><h1><b>Assignment 1</b></h1></center>

<p>&nbsp;</p>

<center><h2><u>Multi-selection List box</u> </h2></center>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<center>

<asp:ListBox ID="Courses" runat="server" AutoPostBack="True" SelectionMode="Multiple">

<asp:ListItem>BCA</asp:ListItem>

<asp:ListItem>BBA</asp:ListItem>

<asp:ListItem>BCS</asp:ListItem>

<asp:ListItem>BSC</asp:ListItem>

<asp:ListItem>BCOM</asp:ListItem>

</asp:ListBox>

</center>

</div>

</form>

</body>
</html>

Design View:
Output:

You might also like