Array Extension

Sunny.Sagar
Posted by Sunny.Sagar under ASP.NET AJAX category on | Points: 40 | Views : 1435
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Client Side Event in ASP.NET Ajax</title>
<script language="javascript" type="text/javascript">
function pageLoad() {
var string = '';
var array = ['Sagar','Sunny'];
Array.add(array, 'M');
for (var i = 0; i < array.length; i++) {
string += array[i] + ' ';
}
alert(string);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager runat="server" ID="SM1" />
</div>
</form>
</body>
</html>

ASP.NET AJAX client side framework also extend the JavaScript array object and provides ability to work with the array in the similar way as we work in the server side

Comments or Responses

Login to post response