特别想要更新方法...

解决方案 »

  1.   

    首先,添加引用Microsoft.Web.Atlas.dll 其实,配置web.config的pages节,如下
          <pages>
            <controls>
              <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
              <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
            </controls>
          </pages>前台代码<html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <atlas:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
            </atlas:ScriptManager>
            
            &nbsp;&nbsp;
            <br />
            <atlas:UpdatePanel ID="up" runat="server">
                <ContentTemplate>
            <asp:DropDownList ID="ddl_Value" runat="server" >
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
            </asp:DropDownList>
            <asp:Label ID="lb_Text" runat="server"></asp:Label>
             <br /><asp:Button ID="bt_Change" runat="server" Text="获取" OnClick="bt_Change_Click" />
                </ContentTemplate>
                <Triggers>
                    <atlas:ControlValueTrigger ControlID="ddl_Value" PropertyName="SelectedValue" />  *****************************************************************************
    ㄗs:
    当你说出了你想说的,做了你想做的之后,你会发现,天是那么蓝,自己是那么可爱。不是因为你得到了你想得到的,而是因为你是在为自己而活着。