I am trying to bring alert while i click the button if condition of "Gridview" label value is above zero. but its not working need your views.
my current code is
Code
'>C#
protected void Button1_Click(object sender, EventArgs e) { var countForZero = from GridViewRow gr in gvEmployeeDetails.Rows where (gr.FindControl("Literal4") as Label).Text.Equals("0") select gr; if (countForZero.ToList().Count " + Environment.NewLine + "window.alert('" + Message + "')"; Page.Controls.Add(lblMessageBox); }
Prakash ReddyRank #4,123 · 364 reputationPosted Feb 6, 2017, 10:38 PM EST