AlwaysVisibleControl Demonstration <asp:ScriptManager id="ScriptManager" runat="server" EnablePartialRendering="true" /> <div class="demoarea"> <div class="demoheading">AlwaysVisibleControl Demonstration</div> <asp:UpdatePanel ID="update" runat="server"> <ContentTemplate> <div style="width:230px;height:100px"> <asp:Panel ID="timer" runat="server" Width="220px" BackColor="White" ForeColor="DarkBlue" BorderWidth="2" BorderStyle="solid" BorderColor="DarkBlue" style="z-index: 1;"> <div style="width: 100%; height: 100%; vertical-align: middle; text-align: center;"><p>Current Time:</p><span id="currentTime" runat="server" style="font-size:xx-large;font-weight:bold;line-height:40px;"/></div> </asp:Panel> <ajaxToolkit:AlwaysVisibleControlExtender ID="avce" runat="server" TargetControlID="timer" VerticalSide="Top" VerticalOffset="10" HorizontalSide="Right" HorizontalOffset="10" ScrollEffectDuration=".1" /> </div> <p> Choose a position for the clock from the list below, then scroll your browser window to see the demo. </p> <p> Position: <asp:DropDownList ID="ddlPosition" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnChange"> <asp:ListItem Text="Default" Selected="true" Value="None" /> <asp:ListItem Text="Top Left" Value="TL" /> <asp:ListItem Text="Top Center" Value="TC" /> <asp:ListItem Text="Top Right" Value="TR" /> <asp:ListItem Text="Middle Left" Value="ML" /> <asp:ListItem Text="Middle Center" Value="MC" /> <asp:ListItem Text="Middle Right" Value="MR" /> <asp:ListItem Text="Bottom Left" Value="BL" /> <asp:ListItem Text="Bottom Center" Value="BC" /> <asp:ListItem Text="Bottom Right" Value="BR" /> </asp:DropDownList> </p> </ContentTemplate> </asp:UpdatePanel>> 对应的后台代码: protected void Page_Load(object sender, EventArgs e) } 相关文章: 2021-12-06 2021-07-01 2021-12-09 2021-10-24 2021-06-09 2022-12-23 2021-11-12 2021-12-27