I have function in javascript with argument and I want to call this function multiple times when Gridview bind its data. so I have put the code like this
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (((DataRowView)e.Row.DataItem) != null)
{
Page.ClientScript.RegisterStartupScript(this.GetType(),new Random().Next(100).ToString(),
"likeStatus('"+argument+"')", true);
}
}
Each time I change the value of key but this function is called only once.
so please help me what should I do to call function in each iteration of gridview binding.
Thanks in advance