public partial class Default2 : System.Web.UI.Page
{
         protected void Page_Load( object sender, EventArgs e)
        {
                AjaxPro.Utility.RegisterTypeForAjax( typeof(Default2));
                
        }
        [AjaxPro.AjaxMethod]
         public string[] getstr()
        {
                 return new string[] { "1", "2", "3"};
        }
}
function getArray()
        {
                 var x=Default2.getstr().value;
                 var txt=document.getElementById( "TextBox2");
                 for( var i=0;i                {
                         if(txt.value!= null&&txt.value.length>0)
                        {
                                txt.value=String(parseInt(x[i],10)*parseInt(txt.value));
                        }
                         else
                        {
                                txt.value=String(parseInt(x[i],10));
                        }
                }
        }