public void DetailsView_GetCallBackResult () { PokerDetailsView dv = new PokerDetailsView (); Page p = new Page (); p.EnableEventValidation = false; p.Controls.Add (dv); DataTable ds = TableObject.CreateDataTable (); dv.AllowPaging = true; dv.EnablePagingCallbacks = true; dv.DataSource = ds; dv.DataBind (); dv.DoRaiseCallbackEvent ("1||0|"); string cbres = dv.DoGetCallbackResult (); Assert.IsNotNull (cbres); if (cbres.IndexOf ("1002") == -1) Assert.Fail ("Wrong item rendered fail"); }