I need to repeatedly call a JavaScript function multiple times. I have attempted to do so in the following way:
In Script
function changeIt(strgr , idx) {
//SomeCode
return;
}
In C#
protected void btn_Click(object sender, EventArgs e)
{
string strgr = 001;
for(int i=0; i<3; i++)
{
base.RunScriptBottom("changeIt(" + strgr + "," + i + ");");
}
}
Unfortunately, the script function is only being called once. What should I do?
Best regards