Posted on: 6/28/2013 10:00:53 AM | Views : 232

hello guys
i have a problem to generate textbox,dropdownlist on button click in asp.net
actually i have linkbutton on which i have open modal popup extendet 
in which i have taken gridview and button to add more new rows
but it cannot generate rows when i click on that button  
its working when i use it on page without using modal popup extender 
my code is:
private void SetInitialRow() { DataTable dt = new DataTable(); DataRow dr = null; dt.Columns.Add(new DataColumn("Column1", typeof(string))); dt.Columns.Add(new DataColumn("Column2", typeof(string))); dt.Columns.Add(new DataColumn("Column3", typeof(string))); dr = dt.NewRow(); dr["Column1"] = string.Empty; dr["Column2"] = string.Empty; dr["Column3"] = string.Empty; dt.Rows.Add(dr);
ViewState[" ...

Go to the complete details ...