2804 2
How do I update .edmx file to get new columns in Visual Studio 2017 (ASP.NET MVC)?

I was trying to update my .edmx (ADO.NET) file to get updated or you can say newly added columns, but I wasn't able to get it, what is the proper way to update  or refresh the model to get new database table columns, when the database changes.

I do not want the process of deleting the complete Models and again adding them from database.

...
Type
Question
2768 1
Error "Entity Framework: Store update, insert, or delete statement affected an unexpected number of rows (0)"

Hello, I am using Entity framework in my asp.net MVC project, when I try to delete any row using Entity framework, I am getting following error

...
Type
Question
2749 1
Insert multiple data in multiple tables using single ActionResult in ASP.NET MVC?

I am creating a big assessment form for VISA purpose. Now there will be a section where users will be able to add their education info.

...

Type
Question
2742 2
how to save Excel data into database using MVC C#?

I need some help in my asp.net MVC web-application, how can I Upload an excel file and extract or save(import) excel file data into my MS SQL server database using asp.net MVC and C#?

Any reference link or code will help, as I want to perform both uploading a file and saving its data into database, any combined solution will work

thanks

...
Type
Question
2681 0
Form Submit in ASP.NET Core MVC using Tag Helpers
In this article, I have explained how to submit form in ASP.NET Core MVC using tag helpers and get data in controller to save it in database.
Type
Article

2641 1
Entity Framework 6 Select data using ToListAsync doesn't work

I am using Entity framework 6 and my query is as below:

...
Type
Question
2614 1
How to include anti-forgery token in ajax request in ASP.NET MVC?

When I am posting Form using jQuery Ajax in my ASP.NET Zero template, I am getting this error "Invalid anti-forgery token" or "The required anti-forgery form field \"__RequestVerificationToken\" is not present."

How can I Include in it in my AJAX Request in ASP.NET MVC, here is my current jQuery code

...
Type
Question
2585 2
How to get Filtered Data in Crystal Report?

I have a list of passengers and I have some filters in the view also to search passenger according to the filter.

...

Type
Question
2567 2
How to save Product Order details with User Id?

I have a user table & I want whenever a user orders a product, its order should be saved in order table with user primary key, so what relationship I have to add in user and order table. please let me know

Suppose, this is my ActionMethod

public ActionResult Create( Student student)
{

if (ModelState.IsValid)
{
db.Students.Add(student);
db.SaveChanges();
return RedirectToAction("Index");
}

return View(student);
}

 Database Relationship image

 ...

Type
Question
2540 1
How to pass Model to Partial View in ASP.NET MVC?

I have created Bootstrap tabs inside ASP.NET MVC razor view and calling Partial View from inside bootstrap, but I would like to know how can I pass Model to partial view while rendering it?

...
Type
Question

Page 17 of 27