Torna al Thread
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="OSM2.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="form1" runat="server">
<div>
<span onclick="MyUpdate();" style="BACKGROUND-COLOR:darkgray">Click me to update</span>
</div>
<table border="1">
<tr>
<td>Something</td>
<td>Hello there bla bla</td>
</tr>
<tr>
<td>Other important stuff</td>
<td>Again more bla bla</td>
</tr>
<tr>
<td>Current minute is<span id="loading2" style="VISIBILITY:hidden">hello</span></td>
<td><img id="loading" src="images/ajax-loader.gif" style="VISIBILITY:hidden"><asp:Label ID="lblMinute" runat="server"></asp:Label></td>
</tr>
</table>
<script type="text/javascript">
function MyUpdate()
{
document.getElementById("loading").style.visibility = 'visible';
WebForm1.GetCurrentMinute();
}
</script>
</form>
</body>
</HTML>