<ajaxToolkit:AlwaysVisibleControlExtender ID="AlwaysVisibleControlExtender1" runat="server" TargetControlID="Panel1" HorizontalSide="Right" HorizontalOffset="10" VerticalOffset="10" VerticalSide="Top" ScrollEffectDuration="3000">
</ajaxToolkit:AlwaysVisibleControlExtender>
<div>
<asp:Panel ID="Panel1" runat="server" BackColor="#FF8080" BorderColor="Black" BorderStyle="Solid"
ForeColor="Indigo" Height="50px" Width="477px">
This is a message that should always stay visible when the user is scrolling up
and down inside the page and should give a great effet.</asp:Panel>
其实很简单就是在控件的TARGETCONTROLID上给一个想一直都存在的控件的ID就可以了,另外需要注意的就是将目标控件放在浏览器的哪里的问题了
</ajaxToolkit:AlwaysVisibleControlExtender>
<div>
<asp:Panel ID="Panel1" runat="server" BackColor="#FF8080" BorderColor="Black" BorderStyle="Solid"
ForeColor="Indigo" Height="50px" Width="477px">
This is a message that should always stay visible when the user is scrolling up
and down inside the page and should give a great effet.</asp:Panel>
其实很简单就是在控件的TARGETCONTROLID上给一个想一直都存在的控件的ID就可以了,另外需要注意的就是将目标控件放在浏览器的哪里的问题了