Microsoft Q&A

ASP.NET MVC

619 questions

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

Browse all .NET tags

619 questions with ASP.NET MVC tags

Sort by: Updated
0 answers

How do I pass dynamically created Checkbox to Controller?

Hi all, hope you are well. Question, I have a form that creates dynamic number checkbox groups and I am looking for some info on how I can pass the selected values to the controller. Example: Lets say there are 2 checkbox groups created (a user could…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
asked 2023-02-08T14:50:41.32+00:00
JayJay 0 Reputation points
edited the question 2023-02-08T15:05:16.34+00:00
JayJay 0 Reputation points
1 answer

There is a duplicate 'oracle.manageddataaccess.client' section defined

Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
646 questions
Internet Information Services
asked 2023-02-03T07:24:19.1066667+00:00
Taha Sözgen 5 Reputation points
answered 2023-02-08T07:20:55.93+00:00
Taha Sözgen 5 Reputation points
2 answers

Access to path denied for files in WWWRoot folder

I am trying to access two folders that resides inside wwwRoot. The folders are "BlankPDFFiles" and "FilledPDFFiles". I am trying to get the blank PDF files that resides inside BlankPDFFiles folder and write some data inside the file…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 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.
7,030 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
asked 2023-02-07T18:26:06.8566667+00:00
Anjali Agarwal 141 Reputation points
edited an answer 2023-02-08T02:13:34.5366667+00:00
Zhi Lv - MSFT 18,891 Reputation points Microsoft Employee
0 answers

how do you default a dropdown list value in mvc razor using vb.net and c#

hello I am trying to set a default value for a dropdownlist in vb.net and in c# mvc razor view here is how I populate the list here is how I create the drop list in mvc razor the data options for my list are I would like to default the dropdownlist to…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
646 questions
asked 2023-02-07T23:00:30.67+00:00
AppDev 1 Reputation point
edited the question 2023-02-08T01:14:06.2933333+00:00
Jack J Jun 19,551 Reputation points Microsoft Employee
5 answers

Getting User Details from Azure AD in ASP.NET

In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
412 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,773 questions
asked 2023-01-17T14:32:53.06+00:00
Joe Green 141 Reputation points
answered 2023-02-07T17:03:32.2+00:00
Joe Green 141 Reputation points
3 answers

How to create environments with appSettings?

In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 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.
7,030 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
646 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
485 questions
asked 2023-02-03T09:02:57.8733333+00:00
Mr Edge 121 Reputation points
commented 2023-02-07T15:16:47.5766667+00:00
Reza Aghaei 4,156 Reputation points MVP
4 answers

Should I learn HTML, CSS, jQuery and Bootstrap or SQL Server and Vanilla JS

Will have a good command of HTML, CSS, jQuery, and Bootstrap be beneficial for a Dot Net Web developer? I have just started learning ASP.NET MVC. Instead of learning jQuery, CSS, and Bootstrap, I personally feel that I should learn as much Vanilla…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
asked 2022-06-27T09:55:13.313+00:00
mikejohn6575 1 Reputation point
answered 2023-02-07T13:06:31.79+00:00
marsdevs 0 Reputation points
3 answers

RemoteCertificateNameMismatch, RemoteCertificateChainErrors with HttpClient

Hello everyone and thanks for the help in advance. I am refactoring code that previously used WebClient (now deprecated) to HttpClient. The page connects with to a device using a self-signed certificate with an internal IP address for the Uri. …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
asked 2023-02-04T23:37:12.8466667+00:00
Kmcnet 221 Reputation points
answered 2023-02-07T09:04:02.51+00:00
QiYou-MSFT 851 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Add-Migration CreateIdentitySchema

Having difficulty with the Add-Migration CreateIdentitySchema step in the tutorial. Any help would be appreciated: Tutorial:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
asked 2023-02-02T19:03:35.49+00:00
Dean Everhart 481 Reputation points
accepted 2023-02-07T08:16:23.1666667+00:00
Dean Everhart 481 Reputation points
1 answer One of the answers was accepted by the question author.

Add-Migration CreateIdentitySchema (2)

The tutorial below deals with authentication. One context is created when the project is first created at projectname.data.ApplicationDbContext; a second context is created later in the tutorial when scaffolding identity at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
asked 2023-02-03T12:35:37.3533333+00:00
Dean Everhart 481 Reputation points
accepted 2023-02-07T08:15:41.6533333+00:00
Dean Everhart 481 Reputation points
1 answer One of the answers was accepted by the question author.

System.InvalidOperationException: 'Invalid operation. The connection is closed.'

hello All, I am getting this error when calling a small function. I am calling this function twice. Below is my code: public async Task<EmployeeInfo?> GetEmployeeByEmployeeNumber(string employeeId) { List<int> emplyoeeInfoId =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
asked 2023-02-06T03:09:17.0033333+00:00
Anjali Agarwal 141 Reputation points
accepted 2023-02-07T04:54:46.1233333+00:00
Anjali Agarwal 141 Reputation points
1 answer

How to load data of employee if drop down list selected changed ?

I work on MVC web application using c# by ado.net I face issue I can't display employee data based on drop down selected index changed . so if user select Pending Request from drop down list it will select employee that have select employee status 1…

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.
7,030 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
646 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
asked 2023-02-06T01:14:50.4233333+00:00
Ahmed Salah Abed Elaziz 0 Reputation points
edited an answer 2023-02-07T02:22:44.1966667+00:00
QiYou-MSFT 851 Reputation points Microsoft Vendor
1 answer

Inject IHttpClientFactory To Create HttpClient through a class

I'm trying to Use IHttpClientFactory To Create HttpClient (ref: https://www.rahulpnath.com/blog/are-you-using-httpclient-in-the-right-way/). At the end of the page, it says: "The Controller class can now use the WeatherService and call it to get…

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.
7,030 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 questions
asked 2023-02-06T07:30:50.62+00:00
winanjaya 41 Reputation points
commented 2023-02-07T02:11:20.7633333+00:00
Xinran Shen - MSFT 1,041 Reputation points Microsoft Employee
1 answer

Why I got 401 occasionally?

Hi All, I'm calling HTTPClient with dynamic token in a loop, but occasionally it thrown me 401 (Unauthorized). What did I do wrong in my test codes below? Is it correct to put the Authorization in there?, it looks like in some time it doesn't reset…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 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.
7,030 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
asked 2023-02-06T00:29:25.2566667+00:00
winanjaya 41 Reputation points
commented 2023-02-07T01:52:36.66+00:00
winanjaya 41 Reputation points
2 answers

Verify User Login credentials via web service

Hello all: I am messing with a web site created with MVC and Individual Accounts for Authorization, so in my DB I have the table AspNetUsers, and in the code the Login method calls: var result = await…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,773 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
916 questions
asked 2023-02-06T15:44:45.78+00:00
John Straumann 21 Reputation points
edited the question 2023-02-07T01:49:29.01+00:00
XuDong Peng-MSFT 4,576 Reputation points Microsoft Employee
1 answer

cookie can not read after downgrade from 7.0 to 6.0?

I am using .net 7.0 and after I downgrade to .net 6.0 I can not use HttpContext.User it is not authenticated. in F12 Cookie I can see the Cookie I have set but I can not read it why?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,606 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
asked 2023-02-06T00:49:27.5+00:00
打玻璃 1,546 Reputation points
answered 2023-02-06T16:31:22.6633333+00:00
Bruce (SqlWork.com) 28,281 Reputation points
1 answer

Server Error in '/' Application Error.

Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
646 questions
Internet Information Services
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
220 questions
asked 2023-02-02T08:30:56.1066667+00:00
Taha Sözgen 5 Reputation points
commented 2023-02-06T13:02:21.8+00:00
Taha Sözgen 5 Reputation points
1 answer

ReportViewer 15.0.0.0 - Remove PageWidth and WholePage option from Zoom dropdown

We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. The Page width and Whole Page options in…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
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,132 questions
asked 2023-02-03T09:51:32.1266667+00:00
Rakesh Guranani 0 Reputation points
answered 2023-02-06T03:13:29.87+00:00
AniyaTang 2,101 Reputation points Microsoft Employee
1 answer

ReportViewer 15.0.0.0 vertical scroll on opening a sub record

We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. When we run the report from SSRS (SQL…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
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,132 questions
asked 2023-02-03T09:47:57.2633333+00:00
Rakesh Guranani 0 Reputation points
answered 2023-02-06T03:12:53.4233333+00:00
AniyaTang 2,101 Reputation points Microsoft Employee
1 answer

ReportViewer 15.0.0.0 shows scrollbar along the parameter and report body section

We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. When we run the report from SSRS (SQL…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
619 questions
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,132 questions
asked 2023-02-03T09:39:05.0866667+00:00
Rakesh Guranani 0 Reputation points
answered 2023-02-06T03:05:40.74+00:00
AniyaTang 2,101 Reputation points Microsoft Employee