|
<%@ Register TagPrefix="uc" TagName="Employee" Src="/ScriptCallbackFramework/Employee.ascx" %>
<%@ Register TagPrefix="uc" Namespace="ScriptCallbackFramework" Assembly="ScriptCallbackFramework" %>
<%@ Page language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="ScriptCallbackFramework.index" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Script Callback Framework (DEMO)</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function IncreaseValueHandler(responseText, context) {
if (context != null)
context.value = responseText;
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<br>
<br>
<br>
<br>
<TABLE id="Table1" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 8px" cellSpacing="20"
cellPadding="1" width="100%">
<TR bgcolor="aliceblue">
<TD style="WIDTH: 100%" colSpan="2">
<font style="FONT-WEIGHT: bold; COLOR: highlight; FONT-FAMILY: Arial">Implement
IClientCallbackEventHandler interface on Page</font>
<br>
<P>
<INPUT style="WIDTH: 56px; HEIGHT: 22px" type="text" runat="server" id="txtValue" size="4"
value="0" readOnly> <INPUT type="button" value="Increase Value" runat="server" id="IncreaseButton" title="Increase value synchronously"></P>
</TD>
</TR>
<TR bgcolor="ghostwhite">
<TD colSpan="2">
<font style="FONT-WEIGHT: bold; COLOR: highlight; FONT-FAMILY: Arial">Implement
IClientCallbackEventHandler interface on Server Control</font>
<br>
<P>
<uc:AgeCalculator id="AgeCalculator1" runat="server"></uc:AgeCalculator></P>
</TD>
</TR>
<TR bgcolor="azure">
<TD colSpan="2">
<font style="FONT-WEIGHT: bold; COLOR: highlight; FONT-FAMILY: Arial">Implement
IClientCallbackEventHandler interface on User Control</font>
<br>
<P>
<uc:Employee id="employee1" runat="server"></uc:Employee></P>
</TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Elvin Cheng is currently living in Woodlands, Singapore. He has been developing applications with the .NET Framework, using C# and ASP.NET since October 2002. Elvin specializes in building Real-time monitoring and tracking information system for Semi-conductor manufacturing industry. During his spare time, he enjoys reading books, watching movie and gym.