3,280 questions with ASP.NET tags

Sort by: Updated
1 answer

Model value in Razor page is always null

I have the following code on my cshtml page: @if (Model!=null && Model.EmergencyInfos!=null && Model.EmergencyInfos.ToList().Count>0) { var count = Model.EmergencyInfos.Count; @for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,197 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 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.
10,289 questions
asked 2023-01-30T05:05:26.0666667+00:00
Anjali Agarwal 1,386 Reputation points
edited an answer 2023-06-11T19:50:12.13+00:00
Bruce (SqlWork.com) 56,771 Reputation points
1 answer One of the answers was accepted by the question author.

System.Net.Http.UnsupportedMediaTypeException: 'No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html'.'

I am getting Unsupported Media Type Exception whenever I am doing a get request on MVC side on [http://localhost:52541/Employee/Index] . Please check my code and help me to solve the issue EmployeeController.cs from MVC using System; using…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 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.
10,289 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
301 questions
asked 2023-06-07T01:10:48.87+00:00
Amritpal Singh 60 Reputation points
accepted 2023-06-09T15:28:04.7666667+00:00
Amritpal Singh 60 Reputation points
2 answers

Javascript debugger for ASP.net web forms project noy working

Hello I am working in Visual studio 2019 web forms VB.net ASP.net and I am using javascript. I have put the breakpoints but the execution is erratic. The breakpoints at the start of the javascript procedure are not working. the alert messages are…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-06-04T10:44:51.97+00:00
Manoj Gokhale 40 Reputation points
commented 2023-06-09T01:49:55+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
1 answer

Language code Resource file "es-XL" Spanish Latin America not created dll Visual studio2019 MVC C#

We have support for multiple languages in our application using resource files with the below language code. English - en-Us ,German - de-DE , Spanish(Latin America) -ex-XL ,French - fr-fR While using visual studio 2012 Professional when building…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,627 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.
10,289 questions
asked 2023-06-01T18:50:12.8466667+00:00
Sunil Patekar 0 Reputation points
commented 2023-06-09T01:47:40.5266667+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
1 answer

ReportViewer stuck at Loading... when clicking drill up/down in Edge

Drilling up/down in an embedded Report Viewer in our webapp is stuck at a "Loading..." panel when done in Edge browser, but works fine in Chrome. The viewer also renders flawlessly, regardless of browser opened in, when viewed using the SSRS…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,148 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 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,808 questions
asked 2023-06-07T02:48:32+00:00
Ann 0 Reputation points
commented 2023-06-09T00:07:30.93+00:00
Albert Kallal 4,731 Reputation points
2 answers

How to get authorization code dynamically depending on tenant ID using blazer Webassembly

I am looking to dynamically create a Microsoft graph client at runtime where the tenant ID is changed dynamically every time it is created. I need to get a authorization code that is dependent on the tenant ID at runtime but I can not seem to make it…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,673 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,398 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 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.
10,289 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,588 questions
asked 2023-06-06T19:49:03.98+00:00
Jacob Duncan 5 Reputation points
answered 2023-06-08T13:25:31.78+00:00
Jacob Duncan 5 Reputation points
2 answers

How to make login details after login success with form below

I work on razor page on asp.net core 7 I need to make form or box with details of users success as below but I don't know what is name of box have user details I pass data after login success by following…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,197 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,398 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-06-03T10:00:50.41+00:00
Ahmed Salah Abed Elaziz 390 Reputation points
answered 2023-06-08T08:49:12.9233333+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

using controls created in c# page forward an aspx page webform

sirs, my problem is about the creation of controls in c# page using forward an aspx page as dynamically controls. the textbox and button controls created had sent to the aspx page and the showing is ok. but the problem is that when i want to used these…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 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.
10,289 questions
asked 2023-06-05T11:57:47.7366667+00:00
marc-antoine yonga 81 Reputation points
accepted 2023-06-08T07:47:42.03+00:00
marc-antoine yonga 81 Reputation points
1 answer

how can we send key based encrypted parameter in an api request in the header instead of sending directly

[AllowAnonymous] [HttpGet] [Route("api/HelpVideo/{ID}")] [ResponseType(typeof(HttpResponseMessage))] public HttpResponseMessage GetHelpVideo(int ID) { try { …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 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.
10,289 questions
asked 2023-06-07T13:40:06.2166667+00:00
Basit Nisar 40 Reputation points
commented 2023-06-08T06:13:36.7633333+00:00
QiYou-MSFT 4,306 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

LINQ query with and and OR search criteria based on GUI

I have the following search boxes on my web page: This is my LINQ query: var transaction = (from sst in _Context.Transactions join sstcnt in ( from ssti in _Context.TransactionItems …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,197 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 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.
10,289 questions
asked 2023-05-30T01:22:45.0733333+00:00
Anjali Agarwal 1,386 Reputation points
accepted 2023-06-07T22:46:00.72+00:00
Anjali Agarwal 1,386 Reputation points
1 answer

Asp.NET Gridview shows only odd rows

Hi all, I have a problem populating a Gridview with a Datatable. I have a DataTable with 21 rows. I select it as Gridview DataSource a call the DataBinb() method. The property GridView.Rows.Count give me 21 as result. But, when I look at the browser, I…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-06-07T10:23:57.0366667+00:00
Nazza 0 Reputation points
commented 2023-06-07T12:36:10.48+00:00
Nazza 0 Reputation points
0 answers

Problems with VS 2015 project

Hello, I have an asp.net 4.5 project with visual basic 2015, in this project a group of 3 programmers work, we use the TFS with source code control, at the beginning I could load the project, debug without problems, for some time both processes take…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-06-05T14:02:47.48+00:00
Alfredo Sanchez 0 Reputation points
commented 2023-06-07T10:07:25.33+00:00
QiYou-MSFT 4,306 Reputation points Microsoft Vendor
0 answers

Column Type For Database-Retrieved Column : Windows Forms DataGridView Control

Hi. My issue is that related to the 3-tier Application development using ASP.NET (.NET Framework). As an IT student, I have been tasked to code for CRUD function using 3-tier. For the Update functionality, I am facing an issue where for the row ' string…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,836 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-06-01T03:47:23.7333333+00:00
IT STUDENT 0 Reputation points
commented 2023-06-07T09:41:27.5466667+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
2 answers

Taking too much time to Load all files from the folder in ASP.NET Web page.

I am loading the files from the server folder in a web page. But, the head ache is, it's taking too much time to load all the files from the specific folder. Hardly it will be taking 30 to 45 mins to load all the files. End user can't wait till load all…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-05-22T12:32:03.3233333+00:00
Gani_tpt 1,586 Reputation points
commented 2023-06-06T13:19:36.9+00:00
Gani_tpt 1,586 Reputation points
1 answer

Would it be possible to add this to ASP.NET?

Hi, I use a .NET application at work that allows to do the following in sequence, select a group of files via a file picker with a small preview pane. https://www.dropbox.com/s/w5aq6t8yeffvcfp/Screenshot%202023-06-05%20081505.png?dl=0 Once…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-06-05T12:28:14.3233333+00:00
Cleason Martin 0 Reputation points
commented 2023-06-06T07:29:20.8533333+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to Open outlook at client end in asp.net mvc

How to Open outlook at client end in asp.net mvc My code is below but its not working after publishing try { List<string> lstAllRecipients = new List<string>(); //Admin email id …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2022-05-16T04:22:36.99+00:00
Vinit Kumar 21 Reputation points
commented 2023-06-06T07:13:13.9+00:00
Kashinath De 0 Reputation points
1 answer

Possible Handle Leak on Azure App Service App

We have an ASP.NET 4.8 application hosted in Azure App Service. At times we see a spike in latency in usually a single instance which also shows spikes in CPU time, TCP connections, Thread Count and Handle count. The average thread count and and average…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
89 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,926 questions
asked 2023-01-23T04:59:13.44+00:00
Krishnadas K P_FT 5 Reputation points
commented 2023-06-06T05:57:50.6533333+00:00
Krishnadas K P_FT 5 Reputation points
0 answers

Track child application from Parent application using iframe and GA4 property

HI all I have two web applications: a parent application and a kid application. Using an iframe, the child application is loaded inside the parent application. My requirement here is to track a child application. How is that possible? How can we make use…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-06-06T03:59:57.5+00:00
Binumon George 161 Reputation points
1 answer

How to fix embedded code blocks showing as plaintext

I am having trouble creating an ASP.NET Web Form because when I visit my website in Chrome, the entire website's code just shows up as plaintext, and in IE it is not much better. I think this is caused by the embedded code block (<% %>) at the top…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,627 questions
asked 2023-06-03T16:39:00.02+00:00
spuser15 20 Reputation points
commented 2023-06-05T21:40:30.84+00:00
Albert Kallal 4,731 Reputation points
3 answers

Local IIS without local admin privileges

Is it possible to run local IIS (on the developer's machine) without being a local admin? when the latest security measures were applied we all lost local admin privileges.

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
asked 2023-05-24T13:16:36.4666667+00:00
Lukic, Dejan 0 Reputation points
answered 2023-06-05T15:51:58.1433333+00:00
Bruce (SqlWork.com) 56,771 Reputation points