?? dropdownlist.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DropDownList.aspx.cs" Inherits="_Default" %>
<!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>無標(biāo)題頁</title>
<style type="text/css">
td
{
border-bottom:dotted 1px #dcdcdc;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style=" border:solid 1px green ; width: 30%">
<tr>
<td style="background-color:Green">
<strong><span style="font-size: 14pt; color: #ffffff">DropDownList控件的應(yīng)用</span></strong></td>
</tr>
<tr>
<td style="height: 27px">
<asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
</asp:DropDownList>
<asp:TextBox ID="TextBox1" runat="server" Width="105px"></asp:TextBox>
<asp:Button ID="btnadd" runat="server" OnClick="btnadd_Click" Text="添加" />
<asp:Button ID="btndel" runat="server" OnClick="btndel_Click" Text="刪除" />
<asp:Button ID="btndelall" runat="server" OnClick="btndelall_Click" Text="全部刪除" /></td>
</tr>
<tr>
<td>
<asp:DropDownList ID="DropDownList2" runat="server">
</asp:DropDownList>(綁定數(shù)據(jù)庫數(shù)據(jù))</td>
</tr>
<tr>
<td>
<asp:Label ID="labout" runat="server"></asp:Label></td>
</tr>
<tr>
<td>
<asp:Label ID="labcount" runat="server"></asp:Label></td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -