Content
EF 6 seed not working
I am following through with EF6 tutorial I followed the steps copied code from website into visual studio 2013. First problem the database was not created; I found solution by adding this to Global Application_Start method ProductContext context…


One login for multiple DBs
I am looking for some advice, not for code snippets etc but just some help with the right approach. We have two projects, PA and PB that we created for different audience and purposes. Now our clients realized that they can use both our apps after we…


ASP.NET MVC table collapse and JSONRESULT populate
Hi. I have the following scenario: Two model which are public class Customer { public string CustomerID { get; set; } public string CompanyName { get; set; } } public class Order { public int…


how to call MVC controller method from postman
how to call MVC controller method from postman


CS0102 The type 'SystemController.ViewsClass' already contains a definition for 'GeneralFormConfiguration'
After a retargeting from .NET 4.5 to 4.0 and back to 4.0 I got this error (3 times in the same file for different classes) Probably a duplicate but I am not sure how to solve it. Do I have to rename the class? And if yes, how? Code:` public…


Upgrade ASP.Net MVC project to .NET Framework 4.8
I have a fairly old ASP.Net MVC project. It seems that the atest .Net Framework it can target is 4.7.2. Can 4.8 be an option? I am asking this primarily out of curiosity. The web app works fine.
Using ApplicationIntent=ReadOnly in C# with stored procedures which modfies data to temp/non temp tables
I'm using SSMS 18 and using a connection with ApplicationIntent=ReadOnly parameter in C# AppConfig for executing some stored procedures, these procs are inserted in local db and this is my question: stored procedures which insert data into temp or non…


asp.net mvc expand table using stored procedure
Hi. I have two table Customer and Order which are viewed in the following order: in the index view which is paginated with PagedList.Mvc, appears Customer and in the details page view the order. For the index page I have a stored procedure to fill table…


Want to use MVC in SharePoint 2019 Project
Dear Experts, We want to add razor page/cshtml file to our custom SharePoint 2019 project, but not able to find MVC template to our existing solution, Is there any way to add cshtml file to our existing solution


How to configure SSL (HTTPS) certificates to see embeded SSRS reports inside a view of an asp-mv.net project
I have an asp-mvc.net project with visual studio. In the views I embeded the reports with the url to the SSRS web portal like this: Using html object tag and adding ?rs:embed=true This worked good while I just connect to localhost. But when…


epplus excel download conditional formatting compatibility issues excel 2013
Hi All, i downloading excel sheet in application and created dropdown based search in excel using EPPLUS in my MVC application excel sheet working fine excel 2016 version but its not working in excel 2013 I am using EPPLUS Version=4.5.3.2 i am getting…


Return record ID before commiting changes?
I am using MVC 5 with Entity Framework 6 and Unit of Work pattern. Tables: and fields Customer - Id, Name ContactType - Id, Name (Home contact, work contact etc) ContactDetails - Id, CustomerId, ContactTypeId, ContactValue I have created the…


System.NullReferenceException: 'Object reference not set to an instance of an object.' AJAX
I have a view that contains a partial view. I have a javascript function that updates the partial view. When I initiate the java with a change of a ddl all works fine. But when I try to do the exact same thing when a button is clicked I get the error…
Connect Tabular SSAS to ASP.NET MVC
I am not finding any relevant article on connecting SSAs tabular model with ASP.NET MVC. Could someone help?


ASP MVC partial view only working properly on Latest version of Browser. It will work on Mozilla Firefox and Google Croma (Version - 79.0.3945.79)
Technology - SharePoint Provided hosted app, ASP MVC Application. Programming Language - C# Hosted Server - Azur App Service. Issue - Some parts of the code (Partial View) not working properly on the Latest Version of the Browser. It will work on…


How to make page to remember the information when user come back to it
Hi All, I have 2 concerns. I have a web Form in ASP.NET MVC. and it has several pages, When user fills out information in the Form, and user moves to next page and there is another form so on and so forth. My Concern is that when user changes his…
how to display image by canvas in MVC
How to display image by canvas in MVC. Thanks.


map data from one list to another
Hello, I have a problem to assign a list of one type of model to another of another type of model What I need to do is the following, From SQL I get a list with the following fields Grupo, IdVariable, Nombre, Operador, Condicional The fact is that I…


entity framework navigational property in model classes
I was learning relationships in model classes. Please see the attached image for the table relationships. There are three tables, department, employee, location. When model classes are created for these tables, I am confused regarding…
creating model class where IDs from multiple model class are required
I have a model class for Company Demographic Info namespace myApp.Core.Models { public class FirmDemoGraphicInfoModels { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int FirmId { get; set; } …

