if i am irritating to you then sorry for it,
i tried like this after getting error,its working fine
button1.Attributes.Add("onclick","return test1(' " & txt1.ClientId& " ')")
function test1(s)
{
var t=document.getElementById(s);
if (t.value=="")
{
alert("testing");
return false;
}
return true;
}
}
,but how can i pass here 18 controls ids,it is not possible right,so that i dont want to pass any parameter to my function,without passing parameter is it possible to fire this function
|