AlwaysVisibleControlExtender AJAX Control

For AlwaysVisibleControlExtender .aspx code is:
<asp:Panel ID=”Panel1″ BorderStyle=solid BorderWidth=2 runat=”server” Height=”30px” Width=”30%”    BackColor=yellow BorderColor=red>
<strong>
<span style=”font-family: Verdana”>Current Time:  </span>
</strong>
<asp:Label ID=”Label1″ runat=”server” Font-Bold=”True” Font-Names=”Verdana” Font-Size=”10pt” Text=”">
</asp:Label>
<a target=”_blank” href=”http://google.com”>Click Me</a>
</asp:Panel>
<asp:AlwaysVisibleControlExtender ID=”ace” runat=”server”    TargetControlID=”Panel1″
VerticalSide=”Middle”    VerticalOffset=”10″    HorizontalSide=”Right”    HorizontalOffset=”10″     ScrollEffectDuration=”0.1″    />

Javascript Code:
<script type=”text/javascript” language=”javascript”>
function ShowTime() {
var dt = new Date();
document.getElementById(“<%= Label1.ClientID %>”).innerText =  dt.toLocaleTimeString();
window.setTimeout(“ShowTime()”, 1000);
}
window.setTimeout(“ShowTime()”, 1000);
</script>

Comments

Popular posts from this blog

Specify port number in ASP.NET Development Server

Server Variables in .Net Web Application

Free Windows Azure Exam