or


I'm loading ralistbox items from db and I have all 4 buttons working but when I do a single transfer to right or left it gives a js error object reference not set to an instance of an object but it updates correctly on db, but due to this error I have to refresh the page.
if (e.Items.Count == 1 && e.SourceListBox == RadListBox1)// if selected item count is 1 and sourcelistbox is Radlistbox1 { SelectedItem.Append("<li> Texto : " + e.Items[0].Text + " ID : " + e.Items[0].Value + "</li>"); BLL.Patrocinadores.Adicionar1PatrocinadorAoAtleta(id_atleta, id_patrocinador); // add one sponsor to user lblTransfer.Text = SelectedItem.ToString(); ActualizarListas(); // mensagem = lblTransfer.Text; // logger(mensagem); }// getting id with id_patrocinador = Convert.ToInt32(RadListBox2.SelectedValue.ToString());any idea for fix?
var wnd = window.radopen(null, "modalWindowWithContent");
wnd.set_contentElement($get(contentElement));
wnd.setSize(wndWidth, wndHeight);wnd.center();return wnd;