private void FillDataRowFromTextBoxes(string counter, BEPromotions.tbl_PromotionsRow dr) { dr.PromotionName = ((TextBox)this.FindControl("txtNamePromotion"+counter)).Text; dr.PromotionDescription = Request.Form[((SharpEditor.Editor)this.FindControl("edtDescriptionPromotion"+counter.ToString())).Editor_HiddenField].ToString(); if (((ImageWizard)this.FindControl("ddlImagePromotion"+counter)).SelectedImage != 0) { dr.PromotionImageID = ((ImageWizard)this.FindControl("ddlImagePromotion"+counter)).SelectedImage; } else { dr.SetPromotionImageIDNull(); } dr.PromotionActive = ((CheckBox)this.FindControl("chkActivePromotion"+counter)).Checked; dr.PromotionOrder = Convert.ToInt32(counter); }