I am trying to do update data...i use linq but cant take
FirstOrDefault()
First()
- protected void BtnUpdate_Click(object sender, EventArgs e)
- {
- using (var context = new WallpaperEntities7())
- {
- var CategoryName = TxtCategoryName.Text;
- var Category = int.Parse(Request["Id"])
- WallPaperCategory std = (from x in context.WallPaperCategries
- where x.CategoryName == CategoryName
- select x)

Varun SetiaPosted Aug 13, 2020, 1:40 AM
Guest UserPosted Aug 13, 2020, 1:55 AM
Guest UserPosted Aug 13, 2020, 1:48 AM
Guest UserPosted Aug 13, 2020, 1:35 AM
Varun SetiaPosted Aug 13, 2020, 1:17 AM