Microsoft Q&A

.NET

22,139 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

22,139 questions with .NET-related tags

Sort by: Updated
0 answers

How to set variable correctly when using "data-image"

I'm working on the use of Modal in my MVC project. The View I have uses "onclick" to send a imagepath to Javascript, then the modal uses the ID value for setting the image path. All good. However... now I have this issue when a user hovers over…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,381 questions
asked 2023-12-24T02:27:56.36+00:00
Coreysan 1,481 Reputation points
1 answer

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.
671 questions
asked 2023-12-23T08:07:34.0866667+00:00
Salvatore Sanollo 20 Reputation points
answered 2023-12-24T01:16:12.63+00:00
SurferOnWww 1,301 Reputation points
1 answer

Customizing the appearance of a Persian DatePicker (JalaliDatePickerControl)

I have a Persian DatePicker that works properly, and I only want to add to it some public properties to customize its appearance. What I'd want to add is as follows: Background BorderBrush CornerRadius I want to be able to access these three…

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,580 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,587 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
717 questions
asked 2023-12-22T17:29:07.2666667+00:00
Reza Jaferi 311 Reputation points
commented 2023-12-23T23:02:41.6833333+00:00
gekka 2,786 Reputation points MVP
0 answers

Maui for android change font size issue

Hello all. Maui net 8 17.9 preview 2 android emulator 34 in my app I have a variable named fontSize I checked in debugging that its value changed correctly as expected but in the following its setting not working. Please can someone give a hint about…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,275 questions
asked 2023-12-23T18:27:50.81+00:00
Haviv Elbsz 1,571 Reputation points
1 answer

With ASP.NET Framework, can I use SerialPort and SignalR together?

I am developing a website using ASP.NET Framework. The website will display real-time data received through the SerialPort. To achieve real-time functionality, I am attempting to use SignalR. However, I'm unsure whether SignalR and SerialPort can be used…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
271 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
113 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.
671 questions
asked 2023-12-23T08:01:17.9333333+00:00
MERVE DEMİR 0 Reputation points
edited an answer 2023-12-23T16:50:20.5+00:00
AgaveJoe 24,876 Reputation points
0 answers

Generate and validate CSRF TOKEN in .net c# having frontend in angular and not in razor

how can i work with csrf tokens if i have my frontend in angular and not razor, i have this question because i have been trying to generate and validate tokens but i usually have many problems with it, i am someone who is just starting and it would be…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,381 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,839 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,587 questions
asked 2023-12-23T01:53:54.53+00:00
Fernando 0 Reputation points
edited a comment 2023-12-23T16:41:56.08+00:00
AgaveJoe 24,876 Reputation points
0 answers

Is there a way to serialize collections before uploading an object to Azure Table Storage in ASP.NET 6?

I have the following class. I want to upload an instance of this class to Azure Table Storage, but it does not support collections. I tried custom getters and setters to serialize the property, but that doesn't seem to work. Is there an attribute or…

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
146 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,754 questions
asked 2023-12-22T13:43:37.94+00:00
Bas Hulskamp 0 Reputation points
commented 2023-12-23T14:27:41.9366667+00:00
Bas Hulskamp 0 Reputation points
1 answer One of the answers was accepted by the question author.

change cells' forecolor on selectionchanged

Hi , i have a datagridview which is load of some data . how do i change all the cells forecolor within a row when a row is selected and revert it back when it is unselected .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,762 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,587 questions
asked 2023-12-23T07:33:06.04+00:00
Pankaj tripathi 165 Reputation points
edited an answer 2023-12-23T12:59:27.0766667+00:00
gekka 2,786 Reputation points MVP
1 answer

Cellpainting event help

string str = textBox1.Text.Trim(); if ((e.RowIndex <= -1) || (e.ColumnIndex <= -1) || string.IsNullOrWhiteSpace(str) || e.Value ==null || (e.Value is null) || (e.Value == DBNull.Value) || textBox1.TextLength < 1 ) …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,762 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,587 questions
asked 2023-12-21T18:39:02.4466667+00:00
Rajkumar Rao 100 Reputation points
commented 2023-12-23T12:43:58.8733333+00:00
Rajkumar Rao 100 Reputation points
0 answers

@bind-Value:event="oninput" does not work for InputText blazor component?

I am new to Blazor and I am having trouble understanding why the oninput event does not work for the InputText Blazor component but works for the HTML input tag. I am also getting errors, which I do not understand. I am using .NET 8 Blazor Server app.…

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,236 questions
asked 2023-12-21T02:04:44.3066667+00:00
Prateek Arora 0 Reputation points
commented 2023-12-23T12:29:05.39+00:00
Prateek Arora 0 Reputation points
1 answer

VISUAL STUDIO 2022 REPORT PROJECT ADDING EXTERNAL LIBRARIES PATH

i am trying to add my rdl files to new report project . the report has got calls to external assemblies for priting barcode, q.r.code on running the report i am getting error that assmbles can not be found i have copies them to bin\debug folder of…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,762 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,659 questions
asked 2023-12-23T03:00:08.09+00:00
Sushil Agarwal 361 Reputation points
commented 2023-12-23T08:49:58.3833333+00:00
Sushil Agarwal 361 Reputation points
2 answers

How can i use signInManager in MVC project without using dbcontext and instead communicate with ASP.NET API

So i have a question when i made a MVC project i used signInManager to sign in and also to check identity by checking his role to see if he is a user or admin and it worked with me but my question is how to use it with API + MVC i have made API and…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,079 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.
263 questions
asked 2023-12-22T23:51:30.25+00:00
Faris Mohamed 0 Reputation points
answered 2023-12-23T03:28:56.2533333+00:00
Bhavesh Sharma 0 Reputation points
1 answer One of the answers was accepted by the question author.

Error RZ10012 when adding a component in blazor

Hello, I'm trying to learn Blazor with a youtube video. I have this page : MainLayout.razor @inherits LayoutComponentBase <div class="page"> <div class="sidebar"> <NavMenu /> </div> …

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,236 questions
asked 2023-01-18T12:23:31.0866667+00:00
Laurent Guigon 266 Reputation points
edited a comment 2023-12-23T01:47:24.8966667+00:00
Jerry Doebler 0 Reputation points
2 answers One of the answers was accepted by the question author.

Can you use an array inside of .Contains() via LINQ?

Please see the very bottom in the Answers section from me, I updated question down there rather than removing this here. A co-worker and myself wrote a very small app to store logs in a SQL database for 6 months. I'd like to add filtering parameters to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
645 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.
263 questions
asked 2023-12-21T07:32:08.6533333+00:00
muttBunch 20 Reputation points
edited the question 2023-12-23T01:33:34.0533333+00:00
muttBunch 20 Reputation points
1 answer

Could not load file or assembly at Run time

our .net application has been running on 6.0 for months now. All of the sudden it threw out various exceptions on assembly could not be loaded. Do you have any insights? Thanks The config: …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,381 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,839 questions
asked 2023-12-22T16:37:02.22+00:00
Tang, Charles 0 Reputation points
edited a comment 2023-12-22T23:42:14.5166667+00:00
Tang, Charles 0 Reputation points
1 answer

IInputStream.ReadAsync causes extraneous task

When the clipboard has a Link Preview Format as in Announcing a new way to paste URLs, Link format!, I am getting the contents in that format. After doing the GetDataAsync the contents is an IRandomAccessStream. Then I do a ReadAsync. The first ReadAsync…

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,580 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,587 questions
asked 2023-12-20T21:07:50.96+00:00
Sam of Simple Samples 5,511 Reputation points
answered 2023-12-22T23:31:20.18+00:00
Sam of Simple Samples 5,511 Reputation points
5 answers

How to find the right code to create a line chart

In a Visual Studio 2019 C# WPF (.NET) project I like to add a line chart to visualise the measurement data of an amplifier as function of frequency. In this project I am controlling a frequency generator, making a frequency sweep (X-Axis). The…

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,580 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,587 questions
asked 2021-05-02T20:41:19.457+00:00
Hobby02 26 Reputation points
commented 2023-12-22T21:10:42.84+00:00
Leonard Groves 0 Reputation points
1 answer

"Need help with serving/streaming video files to frontend using Entity Framework, ASP.NET Core API (.NET 6) deployed on Azure App Services, and MongoDB deployed to Atlas"

Hi, I'm working on a project for streaming videos and I'm currently stuck on trying to figure out how do I serve / stream a video file for front end? If I run everything locally, the video stream is still sent from the backend to the frontend in chunk…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
645 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,154 questions
asked 2023-12-19T17:36:26.2666667+00:00
Max 0 Reputation points
answered 2023-12-22T19:32:37.1033333+00:00
brtrach-MSFT 12,676 Reputation points Microsoft Employee
1 answer

Microsoft Server , and Microsoft Desktop

Hi there to all Microsoft Desktop and Server Developers around the world This is my point of view a operation System as Desktop and server should be complete diferent as Server should have all the tools needed to be a complete server and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,762 questions
Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
534 questions
Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
273 questions
Microsoft Entra
asked 2023-12-22T18:32:27.6433333+00:00
Ricardo Sousa 66 Reputation points
answered 2023-12-22T19:04:24.07+00:00
TuanNguyen-4398 0 Reputation points
0 answers

Need advice on binding to use Commands

I have a ContentPage which has two ContentViews, the whole thing has one ViewModel. In one of the views there is a CollectionView and in the DataTemplate for the items it has a Lable with a TapGestureRecognizer. Now that TapGestureRecognizer has an…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,275 questions
asked 2023-12-22T18:58:36.1+00:00
Lloyd Sheen 1,271 Reputation points