Microsoft Q&A

.NET

22,235 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

22,235 questions with .NET-related tags

Sort by: Updated
0 answers

How can I select and display different images using a single fileupload control?

I have a fileupload control and about 2 to 3 image controls. I want to be able to use this fileupload control to upload images and display them in their respective image controls. For example, if I click on the fileupload, it will take me to my local…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,405 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,759 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.
676 questions
asked 2024-01-01T23:55:14.7+00:00
Donald Symmons 2,426 Reputation points
2 answers

Razor Visual Studio Syntax Highlighting is no longer working

Hi I updated my visual studio to begin working with .NET 8. However, in doing so the syntax highlighting on my .razor pages has stopped working. Any advice on how to resolve this?

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,250 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,183 questions
asked 2023-12-01T10:17:13.7333333+00:00
Dylan O'Toole 0 Reputation points
answered 2024-01-01T22:57:13.2066667+00:00
Patrick Kühnel 0 Reputation points
1 answer

While using a Task with Async and using an await operator, I still get a warning that I need an await operator. Please help

namespace TaskWithReturnComplexTypeValue { class Program { static void Main(string[] args) { SomeMethod(); Console.ReadKey(); } private async…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,405 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.
9,623 questions
asked 2024-01-01T19:56:16.9633333+00:00
Goverdhan Jayaram 0 Reputation points
commented 2024-01-01T20:55:18.38+00:00
P a u l 10,146 Reputation points
0 answers

Bug with BigInteger.Parse?

I am converting some TypeScript to C# on NET 8 and have come across what I believe is a bug with BigInteger.Parse. Since 99.9% of the time "I found a bug in the language/compiler/runtime" turns out to be false, I would like a sanity…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,405 questions
asked 2024-01-01T19:11:40.1133333+00:00
Donald Kackman 0 Reputation points
commented 2024-01-01T20:00:16.57+00:00
Donald Kackman 0 Reputation points
1 answer One of the answers was accepted by the question author.

I cant Sign in using Asp net core identity : PasswordSignInAsync

Hello, im using a .net core Web app with angular , and i want to create an Authentiation Form , so i have this Code My problem is : IsAuthenticated is always False , si i cant Sign in but i tried Postman , and it worked :

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,861 questions
asked 2024-01-01T13:57:17.8266667+00:00
samir karim 0 Reputation points
commented 2024-01-01T16:36:36.33+00:00
samir karim 0 Reputation points
1 answer

Suddenly throwing The name 'nameof' does not exist in the current context

Hi, Why my app suddenly throwing the below error: /Users/jassim/Projects/MyApp/MyApp/Microsoft.Maui.Controls.SourceGen/Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator/Mobile_MemberDetails.xaml.sg.cs(67,67): Error CS0103: The name 'nameof' does not…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,306 questions
asked 2023-04-07T11:17:36+00:00
Jassim Al Rahma 1,476 Reputation points
commented 2024-01-01T15:40:08.13+00:00
Jerome Mx 21 Reputation points
0 answers

MAUI -- Another user has already installed an unpackaged version of this app. The current user cannot replace this with a packaged version.

I'm running into an issue with a commercial Maui app I'm working on. Essentially, we have multiple developers working on this application over RDP, none of which have administrative privileges. What happens is that when one user builds and debugs, anyone…

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,250 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,306 questions
asked 2023-10-10T19:18:42.72+00:00
Dylan 1 Reputation point
edited a comment 2024-01-01T15:18:03.3766667+00:00
Adrian Horn 0 Reputation points
1 answer

Effects not working in .net MAUI

Hi Team, I am working on migrating Xamarin forms application to .NET MAUI. As part of the migration, I am re using the effects in .net MAUI. I am adding the effects to the Label to set FontWeight. This is not working in MAUI, working in Xamarin. When…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,306 questions
asked 2023-12-29T15:19:47.2833333+00:00
Shirisha Siddamshetti 40 Reputation points
commented 2024-01-01T12:46:36.2+00:00
Shirisha Siddamshetti 40 Reputation points
1 answer One of the answers was accepted by the question author.

VerticalScrollThumbDrawable for APIs less than 29

Hi , I wanted to access VerticalScrollBarThumbDrawable for API levels less than 29 , i noticed that in the document i could see that it is accessible only from API 29 , how do i access it for APIs lesser than 29?…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,306 questions
asked 2024-01-01T05:37:23.4166667+00:00
Manickam, Suraj 60 Reputation points
accepted 2024-01-01T12:03:32.8333333+00:00
Manickam, Suraj 60 Reputation points
1 answer

Change bootstrap navbar menu item color only if there is a valid link, using ASP Menu

Am unable to change the color of the menu item that do not have valid links in the sitemap datasource. I have this css which works fine but it set the color when hover for any item in the navbar. .navbar-nav > li > a:hover, .navbar-nav > li…

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.
676 questions
asked 2023-12-05T01:26:51.1666667+00:00
Souleymane Ben Daouda Dieye 0 Reputation points
commented 2024-01-01T10:01:07.3533333+00:00
QiYou-MSFT 4,226 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

entity frameowrk

hi iam using dotnet 6 iam new to dotnet can any one tell me is there any way to enable lazy loading for certain queries in dotnet6 s currently enabling globally working its not giving too much improvement in performance and memory use and and also want…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
648 questions
asked 2023-12-13T06:37:55.8366667+00:00
usha 100 Reputation points
answered 2024-01-01T09:56:24.57+00:00
ranaali raza 0 Reputation points
2 answers

How to Make online admission form in asp.net

I want to make a online admission form for inviting online application for exam/test from students . The form/page will contain the following fields Name category Father Name Mother name Parent Annual Income Present Address Correspondance Address Email…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,405 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,759 questions
asked 2023-12-07T06:54:02.6733333+00:00
umesh kumar 20 Reputation points
commented 2024-01-01T09:54:32.2733333+00:00
QiYou-MSFT 4,226 Reputation points Microsoft Vendor
1 answer

how to pass a value from a database field or TextBox via <input value=> tag

I want to use the <input> tag to pass a string to another site/app. I've already managed this with two other webpages but in both cases the value is taken from a fixed list of values from a radio-button list. In this scenario I want to pass the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,759 questions
asked 2023-12-08T11:30:13.1366667+00:00
Gary Taylor 0 Reputation points
commented 2024-01-01T09:50:48.5233333+00:00
QiYou-MSFT 4,226 Reputation points Microsoft Vendor
1 answer

net maui desktop marquee with linear sliding animation with loop ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,306 questions
asked 2023-12-27T13:10:18.62+00:00
Sami 606 Reputation points
commented 2024-01-01T09:09:07.3+00:00
Sami 606 Reputation points
1 answer One of the answers was accepted by the question author.

How do I Maximize the Windows Screen in a .NET MAUI App

I want my .NET Maui app to run as a Mazimized window. How do I accomplish this? I tried using this code but it wants a DLLImport code? Microsoft.Maui.Handlers.WindowHandler.Mapper.AppendToMapping(nameof(IWindow), (handler, view) => { #if…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
669 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,306 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.
9,623 questions
asked 2023-12-28T22:52:32.7566667+00:00
Fritz Switzer 241 Reputation points
commented 2024-01-01T09:06:15.3566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 26,671 Reputation points Microsoft Vendor
1 answer

.NET 6+, typed HttpClient HttpMessageHandler not fired

I am facing similar issue like mentioned here: https://learn.microsoft.com/en-us/answers/questions/588289/typed-client-addhttpmessagehandler-not-firing I created a brand new project and it contains WeatherForecastController with a HttpClient injected.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,861 questions
asked 2023-12-29T10:04:14.7233333+00:00
Nayan Choudhary 0 Reputation points Microsoft Employee
answered 2024-01-01T08:10:41.2733333+00:00
Zhi Lv - MSFT 28,436 Reputation points Microsoft Vendor
1 answer

Shimming custom renderer for a content view, getting stuck

During my migration to MAUI from Forms, I am having trouble migrating a custom renderer that I use to interact with the camera on iOS and Android. Of course I had my simple CameraModule : ContentView in the Forms project, which was then rendered on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,306 questions
asked 2023-12-27T06:47:49.5866667+00:00
K A 1 Reputation point
commented 2024-01-01T06:39:35.1433333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 60,231 Reputation points Microsoft Vendor
1 answer

VS 2022 unable to run .NET 6.0 project/ Unable to installing missing framework .net 6.0

Hello I have installed VS 2022 Professional that came with .NET 8.0 installed. I am trying to run the code built on .net6.0. For this, I am assuming I have properly installed .net 6.0 because I can see folder .net 6.0 in C:\ Program…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,861 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,183 questions
asked 2023-12-27T01:08:59.3566667+00:00
Adarsh Gaddal 0 Reputation points
commented 2024-01-01T04:45:46.75+00:00
Anna Xiu-MSFT 20,981 Reputation points Microsoft Vendor
10 answers

WebResource.axd not found

Good morning everyone, I transferred my domain to another provider and I discovered that the various RequiredValidators no longer work, the postback still starts when the button is pressed. Inspecting the browser console I get the error that the…

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.
676 questions
asked 2023-12-23T08:07:34.0866667+00:00
Salvatore Sanollo 20 Reputation points
commented 2024-01-01T03:48:07.48+00:00
XuDong Peng-MSFT 6,806 Reputation points Microsoft Vendor
1 answer

The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly

Hi, I am trying to convert a .NET website called iqworks.com to a .NET web application called iqworksWebApp. I created  iqworksWebApp as a web application and copied the folders from a folder called iqworks.com (that’s to folder name). it builds ok,…

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.
676 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,084 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.
9,623 questions
asked 2023-12-29T17:20:18.4066667+00:00
iqworks Information Quality Works 176 Reputation points
answered 2024-01-01T03:29:13.4033333+00:00
QiYou-MSFT 4,226 Reputation points Microsoft Vendor