Thursday, 29 May 2014

AlwaysVisible Control Extender

Step1:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

Step2:
<style type="text/css"> 

        .staticPanel { 
             width: 150px; 
             background-color: White;   
             border: solid 1px black; 
             padding: 10px;  
        } 
     
    </style>


Step3:
 <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> 
    </asp:ToolkitScriptManager>


Step4:
<asp:Panel ID="Panel1" CssClass="staticPanel" runat="server"> 
        <h2>sujoysantra.blogspot.in</h2> 
    </asp:Panel> 
 
    <asp:AlwaysVisibleControlExtender  
        ID="AlwaysVisibleControlExtender1"  
        TargetControlID="Panel1" 
        VerticalSide="Top" 
        VerticalOffset="10" 
        HorizontalSide="Right" 
        HorizontalOffset="10" 
        runat="server" />