i have a button with id Button1 on page load function i m trying to call javascript function like this
int l = files.Length;
Button1.Attributes.Add("onclick", " alertMe(l);");
where files.length is some integer value,now i m trying to pass this value in alertMe function can anyone tell me is it a write way to pass the value if yes how can i retrieve it in alertMe function