Click here to Skip to main content
15,889,834 members
Articles / Programming Languages / Java

Ajaxion - Standalone AJAX - Part 2 of 2 - C# and Java Example

Rate me:
Please Sign up or sign in to vote.
4.97/5 (34 votes)
22 Jan 2013CPOL5 min read 55.2K   1.4K   42  
An article about how to keep AJAX simple as it is and get the most out of it.
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="WebUserCtrl.ascx.cs" Inherits="AjaxionTest.WebUserCtrl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<script src="Ajaxion/js/ajaxion.js" type="text/javascript"></script>
<script src="js/DefaultAspx_AjaxionEvents.js" type="text/javascript"></script>
<TABLE id="Table1" cellSpacing="0" cellPadding="0" align="center" border="0" bgcolor="#ccccff">
	<TR>
		<TD align="center"></TD>
		<TD align="center">&nbsp;</TD>
		<TD align="center"></TD>
	</TR>
	<TR>
		<TD align="center"></TD>
		<TD align="center"><INPUT id="btnXmlTest" style="WIDTH: 136px; HEIGHT: 24px" onclick="ajaxion.postUrl('AjaxCallbackWs.asmx/GetXmlHtml', 'xmlTest', GetXmlHtmlCallback);"
				type="button" value="Call WS - XML Test" name="btnXmlTest">&nbsp;&nbsp;<INPUT id="btnXmlTestClear" style="WIDTH: 136px; HEIGHT: 24px" onclick="ajaxion.postUrl('AjaxCallbackWs.asmx/GetXmlHtml', 'xmlTestClear', GetXmlHtmlCallback);"
				type="button" value="Clear XML Test" name="btnXmlTestClear">
		</TD>
		<TD align="center"></TD>
	</TR>
	<TR>
		<TD align="center" height="10">&nbsp;&nbsp;
		</TD>
		<TD align="center" height="10">&nbsp;<INPUT id="text" type="hidden" value="test"></TD>
		<TD align="center" height="10">&nbsp;&nbsp;
		</TD>
	</TR>
	<TR>
		<TD align="center"></TD>
		<TD align="center">
			<DIV id="divHost">Receive data here.</DIV>
		</TD>
		<TD align="center"></TD>
	</TR>
	<TR>
		<TD align="center" height="5"></TD>
		<TD align="center">&nbsp;</TD>
		<TD align="center" height="5"></TD>
	</TR>
</TABLE>

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
New Zealand New Zealand
Coder

Comments and Discussions