Add item to ListBox from GridView

I have a ListBox present on the main page, which is populated from the database. The home page home.aspxalso has <iframe>one that loads with another page that displays the GridView.

GridView has the option Add item to table m_my_table.

The same table m_my_tableis the DataSource of the list-list present on the main page home.aspx.

How to add an item to a ListBox as soon as an item is added to the GridView? Help do this with or without a page refresh.

How can the databind () function be executed to call a call on the home page after the gridview data binding function has been called on the iframe page.

+4
source share
1 answer

whenever an element is inserted into a gridview, select that selected element and enter a type of a specific type, and then add to your list. Remember, when an element is inserted into the grid, the row is selected because the focus is in the row where you are inserting.

0
source

All Articles