⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.aspx

📁 这一个能预报天气的软件
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>天气预报</title>
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <br />
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table border="1" style="width: 285px">
                    <tr>
                        <td style="width: 100px">
                            地区:</td>
                        <td style="width: 100px">
                            <asp:DropDownList ID="Capital" runat="server" Width="200px">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td style="width: 100px">
                            城市:</td>
                        <td style="width: 100px">
                            <asp:DropDownList ID="City" runat="server" Width="200px">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;<ajax:CascadingDropDown ID="CascadingDropDown1" runat="server" Category="Capital"
                                LoadingText="正在加载地区..." PromptText="请选择地区" ServiceMethod="GetCapital" TargetControlID="Capital"
                                ServicePath="WebService.asmx">
                            </ajax:CascadingDropDown>
                            <ajax:CascadingDropDown ID="CascadingDropDown2" runat="server" Category="City" LoadingText="正在加载城市..."
                                ParentControlID="Capital" PromptText="请选择城市" ServiceMethod="GetCity" TargetControlID="City"
                                ServicePath="WebService.asmx">
                            </ajax:CascadingDropDown>
                            &nbsp; &nbsp;
                            <asp:Button ID="BtnList" runat="server" Text="查看" OnClick="BtnList_Click" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <img src="image/wait.gif" />请稍等, 正在向服务器提交数据......
            </ProgressTemplate>
        </asp:UpdateProgress>
        &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>

⌨️ 快捷键说明

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