default.aspx

来自「模仿google查询」· ASPX 代码 · 共 33 行

ASPX
33
字号
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="ajax" Namespace="MagicAjax.UI.Controls" Assembly="MagicAjax" %>


<!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>
    <ajax:AjaxPanel runat=server ID="ajax">
        <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="AccessDataSource1"
            DataTextField="prov" DataValueField="proid" AutoPostBack="True">
        </asp:DropDownList><asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/pr.mdb"
            SelectCommand="SELECT * FROM [pro]"></asp:AccessDataSource>
        <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="AccessDataSource2"
            DataTextField="city" DataValueField="cityid">
        </asp:DropDownList><asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/App_Data/pr.mdb"
            SelectCommand="SELECT * FROM [city] WHERE ([proid] = ?)">
            <SelectParameters>
                <asp:ControlParameter ControlID="DropDownList1" Name="proid" PropertyName="SelectedValue"
                    Type="Int32" />
            </SelectParameters>
        </asp:AccessDataSource>
    </ajax:AjaxPanel>
        <asp:Label ID="Label1" runat="server" Text="asdfdf"></asp:Label></div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?