|
Write a comment |
Articles |
DHTML Gallery |
.NET |
MyBlog |
About Me |
FAQ
|
|
|
Doing AJAX with popular javascript libraries
| Basic | Prototype.js | Dojo Toolkit | Yahoo UI Library | ASP.NET | Rails |
ASP.NET
[WebMethod]
public string GetHelloString(string name)
{
return 'Hello '+name;
}
Without any effort on your part (and some magic by the 'ScriptManager' object) the framework adds required javascript code to the web page. In the webpage you can make an AJAX call like this:
<script language="JavaScript" type="text/javascript">
function GetMoreInfo()
{
PageMethods.RetrieveMoreInfo(
'Geek',
OnComplete,
null);
return false;
}
</script>
| Basic | Prototype.js | Dojo Toolkit | Yahoo UI Library | ASP.NET | Rails | |
| Copyright (c) 2007-2008 Ashish Patil . Please read FAQ for more details. |