This control is very useful ...... Haha, sometimes we need to display some information in the system, without having to scroll through the page rather than display it on the page, such as advertisement ...... Haha, so you can use this control ...... The usage of AlwaysVisibleControl is also very simple. First, put an AlwaysVisibleControl Control on the page and set its TargetID as the control to be always displayed, such as the ID of a Panel, you can also set its dock location, whether it is up, down, left, right, or in the center. All of them have the say ...... Put the code in it: <asp: Panel ID = "LeaveMessage" runat = "server" Width = "250px" 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: left;">
<P>
Leave a message for me: </p>
& Nbsp; <asp: TextBox runat = "server"/>
<Input type = "button" value = "OK"/>
<P> </p>
</Div>
</Asp: Panel>
<AjaxToolkit: AlwaysVisibleControlExtender ID = "avce" runat = "server" TargetControlID = "LeaveMessage"
VerticalSide = "Bottom" VerticalOffset = "0" HorizontalSide = "Right" HorizontalOffset = "0"
ScrollEffectDuration = ". 1"/> to describe, a Panel, an AlwaysVisibleControl, and two controls. The Panel is not in the scope of this introduction. See AlwaysVisibleControl. The ID and runat attributes are required ...... TargetControlID: the ID of the target control, that is, the ID of the control to be displayed all the time. The Panel ID is set here. Verticalside: vertical docked position VerticalOffset: offset, in pxHorizontalSide: horizontal docked position HorizontalOffset: offset, in pxScrollEffectDuration: specifies the time interval for locating the target control. The default value is 0.1 s.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service