Relative Content

Tag Archive for asp.net-mvcmodel-view-controller

My mvc site cannot connect to the database

imageI published my site, which I created with MVC, and adapted the database information according to the connection string, but I could not establish the connection.

Issue with View ActionResult on Button Click in MVC 5

The following code works fine and display student enrollment records on the page. Right before the table element, I have 3 buttons to filter out records based on the button that was clicked. In the controller, I added a function “IsEnrolled”. The first button “All” calls “Index” and it works fine. The second button “Enrolled” call “IsEnrolled” function and I get an error:

Combining 2 asp.net MVC Project

I have 2 separate MVC applications (Project1.sln, Project2.sln) using Entity Framework in VS 2019. Both applications work fine if the project/solution is loaded separately. When I add Project2 in Project1, I get a long list of errors.

ASP.NET MVC – Search Functionality

I’ve implemented a search to filter out records by LastName but it doesn’t work; basically it does nothing. I have Googled and tried using several code sample but not been able to use them since I get syntax errors. I have also tried an article here text but it also did not work for me.