I have a gridview that has some rows in a UpdatePanel, there is also a button that proceeds into another updatepanel. I add the gridview rows in an arraylist in the button_click event. How can I pass this arraylist to another function?
protected void Button_Click(object sender, EventArgs e)
foreach (GridViewRow row in GridViewRCC.Rows)
//GridViewRCC.AllowPaging = false;
number = GridViewRCC.DataKeys[row.RowIndex].Value.ToString();
updatePnl.Visible = true;
UpdatePanel1.Visible = false;
UpdatePanelSearch.Visible = false;
public void XXXX()
//here I wan't to get the recipients arraylist....