Microsoft Q&A

.NET

12,938 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,938 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

draw an image in picturebox

HI I want to draw an image with mouse event in a picbox. similar to this:

.NET
.NET
Microsoft Technologies based on the .NET software framework.
618 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,829 questions
asked 2023-02-01T07:24:22.07+00:00
user20 141 Reputation points
commented 2023-02-01T10:29:03.09+00:00
user20 141 Reputation points
0 answers

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022)

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022), I don't know what happened?   I was trying to use "using System.Fakes; " , But it alert "missing an assemly reference" after following …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,414 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying a test as a means of analysis or diagnosis.
251 questions
asked 2023-01-31T10:06:39.3233333+00:00
Angelina Jolie 0 Reputation points
commented 2023-02-01T10:12:28.0266667+00:00
Tianyu Sun-MSFT 12,921 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

how to bind to taghelper property in razor pages?

[HtmlTargetElement("pagination")] public class PaginationTagHelper : TagHelper { [HtmlAttributeName("page-index")] public int PageIndex{get;set;} } and in Index.cshtml <pagination page-index="PageIndex" /> I can not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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.
400 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
asked 2023-01-30T05:36:04.64+00:00
打玻璃 1,506 Reputation points
accepted 2023-02-01T09:45:37.13+00:00
打玻璃 1,506 Reputation points
0 answers

Unable to find OpenReadstream in image upload functionality in blazor

Hi i am trying to get image url from selected images.The challenge i am facing here is i am not supposed to touch the  OnFilesChanged methode directly.I need to create a seperate class and access the original class items.How i can get image url of each…

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.
6,954 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.
786 questions
asked 2023-02-01T09:40:56.8366667+00:00
RAMAN RAGAVAN 46 Reputation points
edited the question 2023-02-01T09:44:22.4033333+00:00
RAMAN RAGAVAN 46 Reputation points
2 answers

Which image is displayed on my Samsung Android tablet when I start my application? Can I change it?

I get the following screen on my Samsung tablet when I start debugging my Android application: image2.jpeg A short time later my splash image is displayed: image1.jpeg And finally a short time later the bar with the icons at the bottom is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
891 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.
6,954 questions
asked 2023-01-14T11:16:24.1433333+00:00
Kim Strasser 361 Reputation points
commented 2023-02-01T09:36:38.7466667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
1 answer

'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)

I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
891 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.
6,954 questions
asked 2023-01-30T12:24:14.4933333+00:00
Kim Strasser 361 Reputation points
edited an answer 2023-02-01T09:31:47.2+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,666 Reputation points Microsoft Employee
2 answers

Edge browser showing windows security popup

We have implemented MSAL authorization in our web application but when we are executing visual studio code locally, solution running fine with IE but not with edge browser, its showing windows security credentials popup.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 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.
147 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,331 questions
asked 2023-01-24T07:21:08.0833333+00:00
Nitin Patil 0 Reputation points
commented 2023-02-01T09:31:28.2466667+00:00
ShiJieLi-MSFT 1,666 Reputation points Microsoft Employee
0 answers

getting errors while migrating to MAUI

I have tried migrating existing forms project to MAUI I have used .NET Upgrade Assistant dotnet tool and ran these commands dotnet tool update --global upgrade-assistant upgrade-assistant upgrade <path to sln or csproj> --non-interactive…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,810 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
891 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
618 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
17 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
27 questions
asked 2023-02-01T05:24:37.6933333+00:00
Satya 0 Reputation points
commented 2023-02-01T09:25:41.7566667+00:00
Satya 0 Reputation points
0 answers

Error when using await in override void onAppearing

Hi Team, I'm actually moving my app from xamarin to .net maui. In one of my app page. An alert is displayed when the screen is loaded. Using the protected override void OnAppearing(). But when I do the same in .net maui, the app crash before the page is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
891 questions
asked 2023-01-17T10:10:28.53+00:00
Daniel Desire 21 Reputation points
commented 2023-02-01T09:18:44.97+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
0 answers

Verify digital signature on xml in .net core

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:car="http://www.absd.com/cargoport" > <soapenv:Header> <wsse:Security xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-…

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.
6,954 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
618 questions
asked 2023-02-01T07:10:02.9+00:00
NK, SatishKumar 41 Reputation points
commented 2023-02-01T09:15:21.8433333+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Auth cookie is deleted by the browser when it closes

I have a strange problem. When I close my browser (whether Chrome or MS Edge), my authentication cookie is deleted. Consequently, the next time I start the browser, I have to log in again. My controller looks like this: ClaimsIdentity claimsIdentity =…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
786 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.
6,954 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
asked 2023-01-31T19:34:06.25+00:00
perfect code 141 Reputation points
edited a comment 2023-02-01T09:12:50.5066667+00:00
perfect code 141 Reputation points
1 answer

Encrypt password at client side

I am using SHA256 encryption technique to encrypt / decrypt password. But that Encrypt method is server side so while POST the password travels without getting encrypted. Is there a way I can encrypt it at client side using Ajax $.ajax ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
618 questions
asked 2023-01-31T07:20:30.37+00:00
Adeel Mirza 1 Reputation point
commented 2023-02-01T09:12:13.07+00:00
Jiale Xue - MSFT 1,646 Reputation points Microsoft Employee
0 answers

MauiSplash to fill the screen

Hi, Using: <ItemGroup> <MauiSplashScreen Include="Resources\Splash\splashscreen.svg" /> </ItemGroup> How can I make the splash image to fill the screen vertically and horizontally? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
891 questions
asked 2023-01-25T21:51:19.36+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-02-01T08:44:18.8866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

Linq query and violation of inserting null in database

Hello All, I have the following two model classes: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public string LastName { get; set; } = null!; [DisplayName("First Name")] public string FirstName { get; set; } =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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.
6,954 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
asked 2023-01-31T01:42:14.5866667+00:00
Anjali Agarwal 81 Reputation points
answered 2023-02-01T08:38:24.66+00:00
Xinran Shen - MSFT 881 Reputation points Microsoft Employee
0 answers

are below mentioned packages windows-specific dependencies?

My web application is using below packages, System.Security.Principal.Windows WindowsAzure.Storage Microsoft.WindowsAzure.ConfigurationManager System.windows.forms this particular application also has .resx files It does not have .xaml…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,177 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2023-02-01T08:36:51.65+00:00
Tanv 0 Reputation points
1 answer

How to implement WPF Binding programmatically (not XAML) with TwoWay binding mode?

I have implemented some Dependency Properties in a c# class A as documented to mimic a very simple Control. In class B the Bindings and CLR Properties are implemented using the INotifyPropertyChange interface. Sending data from B to A works fine with…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,177 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
618 questions
asked 2023-01-19T16:09:47.65+00:00
Jörg Debus 66 Reputation points
commented 2023-02-01T08:24:49.71+00:00
Hui Liu-MSFT 14,796 Reputation points Microsoft Employee
0 answers

SsdtHelper.DeployDacPacWithOptions() fails with System.MissingMethodException: Method not found: 'Void Microsoft.SqlServer.TransactSql'

I have a .NET Framework 4.6.1 (upgrading to 4.6.2 doesn't solve it) project that uses DacServices to deploy my database's SSDT on a Docker container. This eventually uses the following code: using (var fileStream = new FileStream(dacpacPath,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
618 questions
asked 2023-01-23T12:08:46.3933333+00:00
Ron Anoshi 0 Reputation points
commented 2023-02-01T08:24:42.9533333+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
2 answers

404 issue to the file

Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
446 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.
400 questions
asked 2023-01-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
commented 2023-02-01T08:20:55.5333333+00:00
Lan Huang-MSFT 9,126 Reputation points Microsoft Employee
1 answer

how to scanned Image convert to Excel using .net C#

how to scanned Image convert to Excel using .net C# following image convert to excel with color codes i want extrac data with color codes not image insert in excel

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.
6,954 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
618 questions
asked 2023-01-23T14:04:05.2766667+00:00
shanker bangari 0 Reputation points
commented 2023-02-01T08:11:07.9666667+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
0 answers

xamarin android emulator android > 9 ? how to make ?

Hello all, I have vs 2022 entreprise installed on my computer all works fine with emulator below android 9 .. i can push my app , debug ans so on .. I've try to make an android 10 / 11 and so on but impossible to start it ,, Of course i have the sdk who…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,810 questions
asked 2023-01-26T09:28:50.3866667+00:00
cristopheB 476 Reputation points
commented 2023-02-01T08:09:41.89+00:00
cristopheB 476 Reputation points