Introduction:
The AlwaysVisibleControl is a simple extender allowing you to pin controls to the page so that they
appear to float over the background body content when it is scrolled or resized. It targets any ASP.NET
control and always keeps the position a specified distance from the desired horizontal and vertical sides.
Example:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!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>AlwaysVisibleControlExtender</title> </head> <body> <form id="form1" runat="server"> This is just a content of page where we should have some pictures and some talk. <br /> Please note that this text is used only to fill the page for demo purposes <br /> and you should have real content for this page<br /><br /><br /><br /><br /> <asp:Panel ID="Panel1" runat="server" BackColor="#FF8080" BorderColor="Black" BorderStyle="Solid" ForeColor="Indigo" Height="50px" Width="477px"></asp:Panel> <ajaxToolkit:AlwaysVisibleControlExtender ID="AlwaysVisibleControlExtender1" runat="server" TargetControlID="Panel1" HorizontalSide="Right" HorizontalOffset="10" VerticalOffset="10" VerticalSide="Top" ScrollEffectDuration="3"> </ajaxToolkit:AlwaysVisibleControlExtender> </form> </body> </html>
0 comments :
Post a Comment