protected void ButtonSubmit_Click(object sender, EventArgs e) { DR_Fragments frag = new DR_Fragments(); frag.SaveChanges(); DR_FragmentLRA LRA = new DR_FragmentLRA(); LRA.ID = frag.ID; LRA._Text = textBoxLRA.Text; }
void submit_Click(object sender, EventArgs e) { DR_Fragments newFrag = new DR_Fragments(); newFrag.Text = text.Text; string feedback1 = feedback.SelectedValue; ; //Update this if (feedback1 == "Positive") newFrag._BaseWeight = FragmentFeedback.Positive; else if (feedback1 == "Negative") newFrag._BaseWeight = FragmentFeedback.Negative; else newFrag._BaseWeight = FragmentFeedback.None; newFrag.SaveChanges(); parentFragment.AttachChildNodeWithNewEdge(newFrag, typeof(Fragment2Fragment_Reply)); WebDirector.Instance.Redirect("/fragments/view?id=" + newFrag.ID); }