jQuery is a cross browser JavaScript library that helps to traverse through HTML elements, event handling, effects(animation) and Ajax interactions.
It is very easy to learn and implement.

Using jQuery in ASP.NET Page

First of all you will require to link jQuery library to your ASP.NET page. Use below shown code in HTML code to include latest jQuery.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"> 
        </script>

It also can be achieved using server ASP.NET side code like this:

protected override void Render(HtmlTextWriter writer)
{
    this.Page.ClientScript.RegisterClientScriptInclude("jQuery", "http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js");
    base.Render(writer);
}

Using jQuery in PHP

<?php

if ($_GET["action"]=="getlink"){

$ld=loadInfo ($_GET["link"]);
echo 
$ld;
}


function 
loadInfo ($lnk){

switch (
$lnk) {
case 
1:
$list[0]="name john";
$list[1]="my desc fsdfsd";
break;
case 
2:
$list[0]="orians gate";
$list[1]="bla for bla";
break;
case 
3:
$list[0]="space 1999";
$list[1]="whos there anyone";
break;
}
//properly format for use in javascript
$str=$list[0]."<|>".$list[1];

return 
$str;
}
?>




Sandeep Joshi
Mathematics, Technology and Programming are my passion. I am a part of Java Ecosystem and through this blog, I contribute to it. I am here to blog about my interests, views and experiences.
I am on Google+ and Facebook.
I feel proud to be listed as a "National Memory Record Holder" in the Limca Book of Records, 2009 and have attempted for an International Memory record in the Guiness Book of Records. I can remember the value of PI upto 10,000 digits after the decimal (3.1415.....). You can contact me on javagenious.com(At)gmal.com ; I would like to hear from you :)