public static System.Collections.Generic.List<T> CreateList<T>(params T[] elements) { return new System.Collections.Generic.List<T>(elements); }
protected void btn_Click(object sender, EventArgs e)
{
var obj = new { Ministry = "Ministry 0", Title = "Title 0", Criteria = "Criteria 0" };
var objList = CreateList(obj);
objList.Add(new { Ministry = "Minis try 1", Title = "Title 1", Criteria = "Criteria 1" });
objList.Add(new { Ministry = "Mi nis try sfd 2", Title = "Title 2", Criteria = "Criteria 2" });
objList.Add(new { Ministry = "Minis try fdsf sdf 3", Title = "Title 3", Criteria = "Criteria 3" });
objList.Add(new { Ministry = "Mini stryd dd 4", Title = "Title 4", Criteria = "Criteria 4" });
objList.Add(new { Ministry = "Min is tryf 5", Title = "Title 5", Criteria = "Criteria 5" });
objList.Add(new { Ministry = "Mini stry 6", Title = "Title 6", Criteria = "Criteria 6" });
gvLoad.DataSource = objList;
gvLoad.DataBind();
ScriptManager.RegisterStartupScript(gvLoad, typeof(GridView), "k", "showGrid();bundAnchorClick();", true);
}
is my code.
Here what i did is, when i click on anchor button then it has to call another button click event from there bind some data to the Gridview then
show this into a Dialog.
The first time its works perfectly. When i click on the second time the jquery event has executed but its not hit the server side btn_Click event.
Experts please tell me what is the problem and how to resolve it. (I used updatepanel in my page)?