private void btn_ok_Click(Object sender, EventArgs arg) { int selectedIndex = Int32.Parse(this.hf_checkedIndex.Value); SearchOutputRow selectedRow = SearchOutput.Rows[selectedIndex]; ProfilazioneDocManager.setSearchOutputRowSelected(selectedRow); Response.Write("<script>window.returnValue = 'Y'; window.close();</script>"); }