effect Express: the effect of this control is that no matter how you drag the scroll bar or drag the browser window size, the control will change or always reset to the fixed position of the browser window.
(AlwaysvisiblecontrolExtender Used to add constant Visibility to an ASP. NET control. The control that is extended then always moves to fixed position in the page regardless Of how the body is resized Or scrolled .)
1 < ASP: toolkitscriptmanager ID = "Toolkitscriptmanager1" Runat = "Server" >
2 </ ASP: toolkitscriptmanager >
3 < ASP: Panel ID = "Panel1" Cssclass = "YS1" Runat = "Server" >
4 < ASP: imagebutton ID = "Ibgotop" Imageurl = "~ /Images/gotop.png" Runat = "Server" />
5 </ ASP: Panel >
6 < ASP: alwaysvisiblecontrolextender ID = "Alwaysvisiblecontrolextender1" Targetcontrolid = "Panel1"
7 Verticalside = "Bottom" Verticaloffset = "10" Horizontalside = "Right" Horizontaloffset = "10"
8 Useanimation = "True" Runat = "Server" Scrolleffectduration = "0.1" >
9 </ ASP: alwaysvisiblecontrolextender >
1. toolkitscriptmanager is required for all Ajax toolkit control;
2. This blank part is not visible, but used in combination with other controls. panel is a container control that is frequently used with this control;
3. alwaysvisblecontrolextender attribute Introduction
-- Targetcontrolid: the ID of the target control, such as "Panel" in this example ";
-- Verticalside (bottom, middle, top): Specifies the initial position of the target control on the vertical side. In this example, it is "bottom" (bottom );
-- Verticaloffset (The default is 0 pixels), The offset distance between the target control and the vertical initial position. In this example, the value is "10" PX;
-- Horizontalside (left, center, right, the default is left), the initial position of the target control on the horizontal edge
-- Horizontaloffset: the offset distance from the initial horizontal position of the target control. In this example, the value is 10 PX shifted to the left. If the value is left, the value is shifted to the right. If the value is right, the value is shifted to the left. Center, positive offset to the left (Note: The offset value cannot be a negative value.);
-- Useanimation (true, false (default). When weitrue is set to this attribute, the target control will have an animation effect (a bit like catch-up). We recommend that you set this parameter to true;
-- Scrolleffectduration (default is 0.1 s). In my opinion, it is the time required to initialize and reset the target control to the specified position. Do not set it too large.
For more information, see> @ http://www.asp.net/ajaxlibrary/act_AlwaysVisible_Reference.ashx