?? default6.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default6.aspx.cs" Inherits="Default6" %>
<!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:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
Width="153px">
</asp:DropDownList>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<br />
<br />
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataSourceID="AccessDataSource1"
DataTextField="省分" DataValueField="classid">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" DataSourceID="AccessDataSource2"
DataTextField="城市" DataValueField="classid">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList4" runat="server" DataSourceID="AccessDataSource3"
DataTextField="縣區" DataValueField="classid">
</asp:DropDownList>
<asp:AccessDataSource ID="AccessDataSource3" runat="server" DataFile="~/App_Data/admin.mdb"
SelectCommand="SELECT [classid], [縣區] FROM [class] WHERE ([classid] = ?)">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList3" Name="classid" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:AccessDataSource>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/admin.mdb"
SelectCommand="SELECT [classid], [省分] FROM [class]"></asp:AccessDataSource>
</div>
<asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/App_Data/admin.mdb"
SelectCommand="SELECT [classid], [城市] FROM [class] WHERE ([classid] = ?)">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList2" Name="classid" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:AccessDataSource>
<br />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
<asp:DropDownList ID="DropDownList5" runat="server">
</asp:DropDownList>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -