Microsoft Q&A

ASP.NET MVC

853 questions

A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.

Browse all .NET tags

853 questions with ASP.NET MVC tags

Sort by: Updated
1 answer

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…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
244 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-19T09:30:39.473+00:00
kobosh 176 Reputation points
answered 2021-09-02T08:55:27.537+00:00
Yijing Sun-MSFT 7,031 Reputation points
3 answers

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…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,825 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-30T17:10:03.623+00:00
Stesvis 1,041 Reputation points
commented 2021-08-31T21:13:58.94+00:00
Erland Sommarskog 78,346 Reputation points MVP
3 answers One of the answers was accepted by the question author.

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…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,214 questions
asked 2021-08-20T06:48:26.317+00:00
Strosala Ioan 61 Reputation points
accepted 2021-08-29T06:17:30.267+00:00
Strosala Ioan 61 Reputation points
1 answer

how to call MVC controller method from postman

how to call MVC controller method from postman

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-23T11:53:58.197+00:00
AK 1 Reputation point
answered 2021-08-24T09:58:40.26+00:00
Yijing Sun-MSFT 7,031 Reputation points
1 answer

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…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,214 questions
asked 2021-08-20T09:59:50.307+00:00
Dimitris Gkikas 1 Reputation point
answered 2021-08-23T06:42:21.427+00:00
Yijing Sun-MSFT 7,031 Reputation points
1 answer One of the answers was accepted by the question author.

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.

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-20T14:45:19.303+00:00
Hong 721 Reputation points
commented 2021-08-21T18:27:54.307+00:00
Hong 721 Reputation points
2 answers One of the answers was accepted by the question author.

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
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,214 questions
asked 2021-08-17T19:55:48.103+00:00
Annapurna Seelam 21 Reputation points
answered 2021-08-17T20:18:01.853+00:00
Maxwell McGraw 1 Reputation point
2 answers One of the answers was accepted by the question author.

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…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-15T07:37:23.603+00:00
Strosala Ioan 61 Reputation points
accepted 2021-08-17T15:58:18.177+00:00
Strosala Ioan 61 Reputation points
4 answers

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

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
1,980 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,437 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-07T15:22:36.437+00:00
Sachin Soni 21 Reputation points
commented 2021-08-16T06:25:06.64+00:00
Michael 17,921 Reputation points
3 answers

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…

Internet Information Services
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,362 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,488 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-12T07:19:02.033+00:00
SSRS-VS 41 Reputation points
answered 2021-08-16T03:43:19.737+00:00
Bruce Zhang-MSFT 3,676 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,160 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-13T13:32:26.067+00:00
venkat Govind 1 Reputation point
2 answers

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…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
244 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-06T12:55:54.63+00:00
Mr Edge 201 Reputation points
commented 2021-08-11T09:43:22.85+00:00
Yijing Sun-MSFT 7,031 Reputation points
1 answer

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,488 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-10T18:33:59.13+00:00
EB 1 Reputation point
commented 2021-08-11T00:57:49.5+00:00
EB 1 Reputation point
1 answer

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.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,214 questions
asked 2021-07-23T03:18:33.053+00:00
Manoj Shanmugasundaram 1 Reputation point
commented 2021-08-05T11:25:49.03+00:00
dbetesh 1 Reputation point
1 answer

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…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-04T09:28:08.3+00:00
vishal pise 1 Reputation point
answered 2021-08-05T09:47:00.073+00:00
Yijing Sun-MSFT 7,031 Reputation points
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,160 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-02T13:15:27.44+00:00
Sheikh 21 Reputation points
accepted 2021-08-04T14:07:22.253+00:00
Sheikh 21 Reputation points
1 answer

how to display image by canvas in MVC

How to display image by canvas in MVC. Thanks.

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-08-03T15:29:20.25+00:00
AGAI 1 Reputation point
answered 2021-08-04T09:11:27.36+00:00
Yijing Sun-MSFT 7,031 Reputation points
1 answer

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…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,214 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-07-30T18:21:22.297+00:00
Rolando Ivan Medrano Chavez 1 Reputation point
answered 2021-08-02T07:41:32.153+00:00
Yijing Sun-MSFT 7,031 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
244 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-07-29T07:39:08.163+00:00
arsar 121 Reputation points
accepted 2021-08-01T10:31:16.477+00:00
arsar 121 Reputation points
0 answers

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; } …

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
244 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
853 questions
asked 2021-07-27T10:19:13.697+00:00
arsar 121 Reputation points
commented 2021-07-29T08:04:55.063+00:00
Yijing Sun-MSFT 7,031 Reputation points