public void Add_DropTextlist() { ProofTextBusiness pt = new ProofTextBusiness(); //List<ProofText> ptDTO = new List<ProofText>(); DataTable dt = new DataTable(); dt = pt.GiveAllProofText(); //for (int i = 0; i < ptDTO.Count; i++) // { Dpl_Text.DataSource = dt; Dpl_Text.DataTextField = "Prooftext"; Dpl_Text.DataBind(); //} }
protected void btnCreate_Click(object sender, EventArgs e) { try { CommonBusiness cmnb = new CommonBusiness(); string Prooftext = txt_ProofText.Text.ToString(); ProofTextBusiness proofB = new ProofTextBusiness(); proofB.CreateProofTextByProofText(Prooftext); txt_ProofText.Text = ""; RadWindowManager1.RadAlert("پیام بدرستی ثبت گردید", 200, 200, "پیام", "CallBackConfirm"); cmnb.InsertIntoUserLog(int.Parse(Session[sessionNames.userID_Karbar].ToString()), DateTime.Now.ToShortTimeString(), int.Parse(Session[sessionNames.appID_Karbar].ToString()), 30, ""); } catch (Exception) { RadWindowManager1.RadAlert("پیام بدرستی ثبت نگردید", 200, 200, "پیام", "CallBackConfirm"); } }