Refresh the page after data filled.
-
i created a master page in this 3 menus employee,dept,class. so when i clik on employee then emp from will be loaded in this first name,last name,dept name,class name nd joining date nd a table in grid view.3 button add,delete and clear.so when i clik on add the data added but i want to refresh the page so i want this without refresh the page.when i click on add it will be immediately add on grid view table.
Amol.
-
i created a master page in this 3 menus employee,dept,class. so when i clik on employee then emp from will be loaded in this first name,last name,dept name,class name nd joining date nd a table in grid view.3 button add,delete and clear.so when i clik on add the data added but i want to refresh the page so i want this without refresh the page.when i click on add it will be immediately add on grid view table.
Amol.
Bind the gridview again after adding the record
-
i created a master page in this 3 menus employee,dept,class. so when i clik on employee then emp from will be loaded in this first name,last name,dept name,class name nd joining date nd a table in grid view.3 button add,delete and clear.so when i clik on add the data added but i want to refresh the page so i want this without refresh the page.when i click on add it will be immediately add on grid view table.
Amol.
i made the following code.but not working. string sqlConnectString = "DataSource=ABHI\\SQLEXPRESS;Initial Catalog=empDB;Integrated Security=True"; string sqlSelect = "SELECT [emp_id], [first_name], [last_name], [dept_name], [class_name], [emp_joiningdate] FROM [empTB]"; SqlDataAdapter da = new SqlDataAdapter(sqlSelect, sqlConnectString); DataTable dt = new DataTable(); da.Fill(dt); GridView1.DataSource = dt; GridView1.DataBind(); conn.close(); so where can i place this code.i placed after the data inserted. Thankx in advance.