Microsoft Q&A

.NET

12,891 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,891 questions with .NET-related tags

Sort by: Updated
0 answers

Xamarin Form Add Multiple Binding

Please I need help. I have my Xamarin Form app that is not changing the Label Text dynamically after binding the label text to a property located in its xaml.cs file (code behind file). The xaml Page already has a DataBinding to a ViewModel, maybe that's…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,805 questions
asked 2023-01-30T07:42:11.72+00:00
Alice 26 Reputation points
edited the question 2023-01-30T07:43:16.0633333+00:00
Alice 26 Reputation points
1 answer

Check if two frames are overlapping in .net maui

is it possible to detect it when two frames are overlapping (even when they don't have the same parent)? I need it for my .net maui project (A game in .net maui) this is how I have the hitboxes and players set up (the Frames will get added into…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
604 questions
asked 2023-01-26T10:32:06.7033333+00:00
Mielesplayz 241 Reputation points
commented 2023-01-30T07:39:37.59+00:00
Mielesplayz 241 Reputation points
1 answer

ISS RDP Site still showing insecure after cert issued

I have gone and got a certificate for *.contoso.com and [contoso.com] . I have installed it against the default website on windows server IIS. I am now browsing (using the same server) to https://dc1.internal.contoso.com/RDWeb/Pages/en-US/login.aspx and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
604 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,031 questions
Internet Information Services
asked 2023-01-28T19:18:31.6233333+00:00
Al Grant 1 Reputation point
commented 2023-01-30T07:35:56.15+00:00
Yurong Dai-MSFT 1,041 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to marshal an array of fixed size structs from unmanaged to managed memory

.Net 7 Having an IntPtr (nint) pointing to an array of fixed size and blittable structs in unmanaged memory. Marshal.Copy does not seem to have any method like: Copy(myPointer, myStrcuctArray, 0, myStructArray.Length) (It accepts an array of int,…

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,929 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.
956 questions
asked 2023-01-29T21:43:46.12+00:00
Magne 96 Reputation points
accepted 2023-01-30T07:33:53.36+00:00
Magne 96 Reputation points
1 answer One of the answers was accepted by the question author.

How to remove validation-info in text?

in Index.cshtml <form> <div class="row"> <div class="col-sm-2"> <label class="col-form-label">客户:</label> <div> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 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.
394 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
586 questions
asked 2023-01-27T12:33:03.2066667+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-30T07:28:47.4566667+00:00
打玻璃 1,446 Reputation points
0 answers

Attempting to create a slider that monitors / changes the position of a video.

I am wondering just how I can accomplish the above. I have an event which gets called as the video plays and provides the position of the video being played. I can bind the Ticks of the postion to the slider with no problem. The problem is that when…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-29T15:25:08.23+00:00
Lloyd Sheen 756 Reputation points
commented 2023-01-30T07:26:25.8266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,396 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 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.
394 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,177 questions
asked 2023-01-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
commented 2023-01-30T07:24:15.5166667+00:00
Peter_1985 1,831 Reputation points
4 answers

Web form issue

Hi, I get "undefined" unexpectedly to the column/field below, while there is the proper row value returned from the table. What is the reason? html += "<td >货币</td><td style='font-weight:…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 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.
394 questions
asked 2023-01-20T07:49:30.2666667+00:00
Peter_1985 1,831 Reputation points
commented 2023-01-30T07:17:28.3+00:00
Viorel 82,476 Reputation points
0 answers

Display mauiasset PDF in webview ERR_ACCESS_DENIED.

I have a VS2022 dotnet prog which runs on IOS and Android Simple requirement - Open mauiAsset pdf file and display it in webview. 1 page no manipulation simple Now I know Webview CAN display PDF - I can load it with a pdf on a webserver. How do I open…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-29T11:28:28.2+00:00
john murray 1 Reputation point
commented 2023-01-30T07:16:40.31+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,396 Reputation points Microsoft Employee
1 answer

c# use tablename as variable

How can i use tablename as a variable in sql query? "select * from table_name " table_name must be variable.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 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.
8,483 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,929 questions
asked 2023-01-30T06:44:59.1066667+00:00
ÖMER NASUHİ KESKİN 0 Reputation points
answered 2023-01-30T06:58:07.6833333+00:00
Olaf Helper 25,556 Reputation points
1 answer

APT2144 invalid file path

VS 2022 Preview... Trying to build and run "Notes" tutorial getting 2 APT2144 invalid file path error in file Xamarin.Android.Aapt2.targets. Error message gives a file path, which I can find using File Explorer. Help on error message says it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-28T21:39:20.0033333+00:00
Scott Phillips 0 Reputation points
answered 2023-01-30T06:47:02.67+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,061 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.
604 questions
asked 2023-01-23T12:08:46.3933333+00:00
Ron Anoshi 0 Reputation points
commented 2023-01-30T06:45:38.17+00:00
Jack J Jun 19,046 Reputation points Microsoft Employee
1 answer

How to use MauiHotReloadHelper

I created a MAUI project with MainPage without Xaml code public class MainPage : ContentPage { public MainPage() { Content = new Label { Text = "Hello world!" }; } } I want to use Hot Reload from VSCode. For this I use Clancey's…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-29T10:55:24.72+00:00
Nikita Romanov 0 Reputation points
commented 2023-01-30T06:39:16.88+00:00
Nikita Romanov 0 Reputation points
0 answers

How can caming towns null ?

When the city is selected, it comes with the town. But when the city is selected, I want the town to be empty and for the user to select it. I want when user choose city second drowboxlist caming null how can add ? my code is ; For example…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 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.
394 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.
8,483 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
586 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,177 questions
asked 2023-01-30T06:39:03.31+00:00
Harun Ergün 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to clear text box records before or after downloading a file in ASP.NET web application

using (FileStream fs = File.Create(dataDir + xmlFileToConvertTo)) { Byte[] info = new UTF8Encoding(true).GetBytes(xmlData); fs.Write(info, 0, info.Length); …

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.
394 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,929 questions
asked 2023-01-26T04:58:36.0633333+00:00
Roefatin, Ridzuan 20 Reputation points
commented 2023-01-30T06:35:22.47+00:00
XuDong Peng-MSFT 4,571 Reputation points Microsoft Employee
0 answers

Model is always null on Razor page

hello All, 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.
2,536 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,929 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
586 questions
asked 2023-01-30T05:11:54.52+00:00
Anjali Agarwal 81 Reputation points
commented 2023-01-30T06:26:38.4+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
1 answer

My private NuGet package feed from Azure DevOps shows packages that are not mine?!?

I recently created a project for a common code library and setup a pipeline to build, pack, and push the library as a NuGet package to my private organization's artifact feed. When I went to get the package from the feed in Visual Studio, there were at…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
604 questions
asked 2023-01-24T22:25:46.8966667+00:00
Eric Rook 0 Reputation points
edited the question 2023-01-30T06:23:21.53+00:00
Tarun Krishna Mikkilineni-MSFT 0 Reputation points Microsoft Employee
1 answer

the taghelper do not rendered?

using Microsoft.AspNetCore.Razor.TagHelpers; namespace tag.Components { [HtmlTargetElement("pagination", TagStructure = TagStructure.WithoutEndTag)] public class PaginationTagHelper : TagHelper { …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
586 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 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.
394 questions
asked 2023-01-28T01:27:55.3233333+00:00
打玻璃 1,446 Reputation points
edited an answer 2023-01-30T06:17:35.6466667+00:00
Xinran Shen - MSFT 806 Reputation points Microsoft Employee
0 answers

Upgrade my Azure Function from .net Core 3.1 to .net Core 7.0. Error "'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstraction

I have an Azure Function which run on .net core 3.1, but when i change the .net version from 3.1 to 7 i got this error:- System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=7.0.0.0,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,576 questions
asked 2023-01-27T16:29:45.1233333+00:00
john john 676 Reputation points
edited the question 2023-01-30T06:17:02.7833333+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
0 answers

Exception "Scheme already exists" when trying to implement multiple authentication schemes

For a Azure app service that uses two different app registrations for internal and external users I want to implement multiple authentication schemes. I use a ASP.NET Core web application (.NET6) with the following app…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,308 questions
asked 2023-01-26T11:56:01.52+00:00
Jörg Auberg (Admin) 0 Reputation points
edited the question 2023-01-30T06:07:03.8233333+00:00
Tarun Krishna Mikkilineni-MSFT 0 Reputation points Microsoft Employee