TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
271
36.2k
update data on button click using linq in asp.net Entity Framework
Aug 13 2020 12:31 AM
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)
Reply
Answers (
7
)
MVC_Controller error
Filter Datagrid View from data populated from entity in C#