Microsoft Q&A

.NET

13,965 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,965 questions with .NET-related tags

Sort by: Updated
1 answer

VS Code displayed on webpage as text rather than picture

If I want to display code...as it appears as code in Visual Studio (e.g. below) but on a web page as text, is there any way of doing that? If I place the code between <p> </p> tags, I get: Element 'html' cannot be nested inside element…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
728 questions
asked 2023-03-23T15:29:54.3766667+00:00
Dean Everhart 806 Reputation points
answered 2023-03-23T16:56:34.96+00:00
AgaveJoe 19,526 Reputation points
1 answer

Downloading Core 7 for a x64 bit windows 11 operating system

I've been working with .net core 6. I tend to want to stay with it because I am used to it, but I'm considering upgrading to .core 7, since it is available. Would it be advisable to upgrade to 7 for new projects? The download page seems…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
728 questions
asked 2023-03-23T16:17:18.0233333+00:00
Dean Everhart 806 Reputation points
answered 2023-03-23T16:44:18.2366667+00:00
AgaveJoe 19,526 Reputation points
1 answer

System.drawing.common support for linux

our app has a graphics/image generator dll that uses drawing classes, but System.drawing.common is not supported on other platforms, we can switch to use aspose.drawing, which is supported on windows and linux. the problem we face is windows forms app…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
869 questions
asked 2023-02-12T19:36:08.4366667+00:00
dwijay 0 Reputation points
answered 2023-03-23T15:49:15.2066667+00:00
Pavel Melnikov 0 Reputation points
0 answers

making an image box in Razor page

I want to make an image box on my razor page so that users can type or sign their name in that box. I want something like adobe acrobat offers. below is the screen shot: How can I achieve this.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
asked 2023-03-23T04:44:53.9833333+00:00
Anjali Agarwal 616 Reputation points
commented 2023-03-23T15:43:26.6733333+00:00
Ali Benchaaban 0 Reputation points
0 answers

How to fix Incomprehensible error in the whole of my application?

Hi, some time ago I made a blazor wasm .net core 6 application with VS version 17.2.3 and it works fine. However I opened the code today and I find myself with "red" everywhere, see the image below. Is this a problem with the VS version?…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
878 questions
asked 2023-03-23T13:03:19.51+00:00
sblb 851 Reputation points
commented 2023-03-23T15:29:54.4066667+00:00
Ali Benchaaban 0 Reputation points
0 answers

Convert.ToDouble(String) does not throw an overflow exception when max_value is exceeded

I use .NET 8.0 on vscode. In documentation (for .NET 8.0) of Convert.ToDouble(String) there is OverFlow Exception when Double.MaxValue is exceeded, but when I convert a string that represents a value>Double.MaxValue, it doesn't throw an exception, but…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
869 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,524 questions
asked 2023-03-23T13:50:28.57+00:00
d'ARIENZO SAMUELE 0 Reputation points
edited a comment 2023-03-23T15:25:41.3966667+00:00
Karen Payne MVP 30,126 Reputation points
0 answers

Problem capturing value from cell in gridview using GridView1_RowUpdating in ASP.net(VB). Getting error below.

Line 73: Line 74: 'Compute Final Price Line 75: Dim ItemPrice As String = TryCast(GridView1.Rows(e.RowIndex).FindControl("Price"), TextBox).Text.ToString Line 76: hfFinalPrice.Value = hfItemQuanGrid.Value *…

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.
459 questions
asked 2023-03-23T15:20:01.93+00:00
DEK 0 Reputation points
commented 2023-03-23T15:23:55.5166667+00:00
DEK 0 Reputation points
0 answers

Entity Framework, nullable, and no warnings or hacks

I am trying to get my model constructors written so that nullable works, with no warnings, and no having to assign default! - in other words, to do it all right. BTW, if I'm wrong on any of this, please let me know. I'm mostly there. What's left is…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:39:22.8866667+00:00
David Thielen 691 Reputation points
commented 2023-03-23T15:21:16.62+00:00
David Thielen 691 Reputation points
0 answers

ASP.NET Core MVC : complex data model reading related data

I am trying to display a drop-down on my DEVICES create.cshtml view of the names from CONTACT via the lookup table DeviceAssignments, below is an ERD. I am already able to display the drops downs for DeviceCategories and DeviceLocations, but I am not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
728 questions
asked 2023-03-16T17:21:00.64+00:00
tjestesjr77 20 Reputation points
commented 2023-03-23T15:19:22.09+00:00
tjestesjr77 20 Reputation points
2 answers One of the answers was accepted by the question author.

Running or Downloading Contoso University from GitHub

I am trying to download a completed copy of the Contoso University Demo from GitHub. cu_final is probably the copy I want. I open cu_final and I see the familiar .net file structure for a project. I am encouraged. When I hit the <> Code button…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
728 questions
asked 2023-03-22T14:33:39.34+00:00
Dean Everhart 806 Reputation points
accepted 2023-03-23T15:18:30.33+00:00
Dean Everhart 806 Reputation points
0 answers

Can the CommunityToolkit.Maui.MediaElement be used in Code-behind?

I can use the CommunityToolkit.Maui.MediaElement to play an audio file in XAML. I understand this control can also play video but my need is just to provide an audio prompt from within a code behind. I tried the following which compiles okay, but nothing…

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,524 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,064 questions
asked 2023-03-23T15:15:37.37+00:00
dg2k 806 Reputation points
1 answer

Poptrox-popup + Net.Core 6. How do I create my own itemlist under the picture (div or iframe)?

Hi! I use a free Parallelism template (you can download and see the code) for the site: https://html5up.net/parallelism Poptrox: https://www.jqueryscript.net/demo/Highly-Configurable-Responsive-Content-Lightbox-Plugin-For-jQuery-poptrox/ …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
509 questions
asked 2023-03-22T14:18:52.74+00:00
Volk Volk 241 Reputation points
edited an answer 2023-03-23T15:07:33.2466667+00:00
Volk Volk 241 Reputation points
1 answer

Turning off cascade deletes

I have a case where I need to turn off cascading deletes (two different models are both wanting to cascade delete and so one needs to be turned off). I think I have this right but I saw numerous different answers all over the place and so want to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:37:30.1933333+00:00
David Thielen 691 Reputation points
commented 2023-03-23T14:29:53.8+00:00
Jack J Jun 21,896 Reputation points Microsoft Vendor
1 answer

in C# before the Nullable(?) was invented,Which can be null?which can't be null?

in C# before the Nullable(?) was invented,Which can be null?which can't be null? and Why are we need to worried about null or not null?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 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,524 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
869 questions
Universal Windows Platform (UWP)
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
493 questions
asked 2023-03-23T08:43:50.02+00:00
兰树豪 261 Reputation points
edited an answer 2023-03-23T14:11:58.0633333+00:00
AgaveJoe 19,526 Reputation points
1 answer

.NET 6.0 migration issues leads to MySQL stored procedure calling

Once we migrate .NET core 3.1 applications to .NET 6.0, we get below issue while calling MySQL stored procedure, The LINQ expression could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
979 questions
asked 2023-03-22T14:29:14.39+00:00
Ninad Manjrekar Offcial 0 Reputation points
commented 2023-03-23T14:06:06.17+00:00
Michael Taylor 40,926 Reputation points
1 answer

Http chunk encoding miss end of chunked encoding("0\r\n") or tailer("\r\n") on IIS 7.5

I create a simple ASP .NET Application and write a generic web handler (HelloFilterWithClose.ashx). HelloFilterWithClose.ashx ProcessRequest with setting a HttpResponse.Filter(MyFilter), and it response to http client with write a PDF file to http…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
asked 2023-03-22T09:35:26.2833333+00:00
linq.x 1 Reputation point
edited an answer 2023-03-23T13:56:55.9833333+00:00
AgaveJoe 19,526 Reputation points
0 answers

Access Control

Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
728 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
869 questions
asked 2023-03-23T12:15:43.6866667+00:00
Juan A. Reyes Paulino 0 Reputation points
commented 2023-03-23T13:51:20.9866667+00:00
AgaveJoe 19,526 Reputation points
1 answer One of the answers was accepted by the question author.

Attribute 'Table' is not valid on this declaration type. It is valid on 'type' declarations only.

I'm doing the Output Binding in Azure Functions .NET 6. Whatever the input data I'm receiving, that passing to the table in the table storage but two errors I'm getting. Getting Table Attribute Error in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
869 questions
Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
119 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,789 questions
asked 2023-03-04T02:15:15.63+00:00
vaishu-143 716 Reputation points
commented 2023-03-23T13:49:31.0866667+00:00
MuthuKumaranMurugaachari-MSFT 8,396 Reputation points
0 answers

VB 2015 : How To prevent Column Ordering between Frozen Columns in DataGridView ?

Hi, I have a DataGridView Control with a bunch of Columns and Rows. My task is to have the first 3 Columns Frozen and Fixed in order. User can't change order on Columns from Column01 to Column03. User can change order only on Columns from Column04…

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
493 questions
asked 2023-03-23T13:49:18.42+00:00
Marco Gregori 21 Reputation points
7 answers

A connection was successfully established with the server, but then an error occurred during the login process Error from .Net core WebAPI

Hi, I've an application that uses WebAPI in .Net core 6 and uses Kestrel server. When calling HttpPost request, the code tries to inject data in DB but fails with error: The certificate chain was issued by an authority that is not trusted. Inner…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
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,068 questions
asked 2021-12-14T12:23:52.077+00:00
Amit Potdar 91 Reputation points
commented 2023-03-23T12:08:31.7433333+00:00
Saeed Pourali 0 Reputation points