using (DataClass1DataContext DcContext = new DataClass1DataContext()) { ArticleMdl articleObj = new ArticleMdl(); articleObj.Title = TextBox1.Text; articleObj.Summary = TextBox2.Text; articleObj.Tags = TextBox3.Text; articleObj.Image = TextBox4.Text; articleObj.Category = Convert.ToInt32(RadioButtonList1.SelectedValue); articleObj.Subcategory = Convert.ToInt32(RadioButtonList2.SelectedValue); DcContext.tblArticles.InsertOnSubmit(articleObj); DcContext.SubmitChanges(); Label1.Text = "Your article is saved."; }
TEntity
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)