Microsoft Q&A

.NET

13,894 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,894 questions with .NET-related tags

Sort by: Updated
1 answer

issue open new bootstrap modal still show validation error when form loaded ?

I work on blazor app with .NET core 7 . I face issue validation not reset or removed after open new modal . Issue display on step 5 when open New Bootstrap Modal so my scenario as below for details by steps : 1- I click button add New server so bootstrap…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
870 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
500 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,800 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,486 questions
asked 2023-03-19T23:39:47.6766667+00:00
Ahmed Salah Abed Elaziz 65 Reputation points
edited an answer 2023-03-20T10:48:42.1866667+00:00
Qing Guo - MSFT 161 Reputation points Microsoft Vendor
0 answers

Failed to get appDefinitions

I have 5 apps in the Developer Portal app. But I can't access to view the app detail. All the apps throw the error. Failed to get appDefinitions (Tracking info: ea546b4a-cddf-41d0-bb46-47743858451b_47 Tue, 14 Mar 2023 04:19:48 GMT | Status code:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,800 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.
870 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
1,859 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,859 questions
asked 2023-03-14T04:26:32.7466667+00:00
Khoa DEV. Nguyen Tran Minh 5 Reputation points
commented 2023-03-20T10:37:18.86+00:00
Sayali-MSFT 1,606 Reputation points Microsoft Vendor
0 answers

How to use a (.a) Library in a .NET Maui iOS project

I was able to use a (.a) library from my xamarin project. i used to add my library this way in the iOS project .csproj <ItemGroup> <NativeReference Include="Native References/MyLib.a"> <Kind>Static</Kind> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,053 questions
asked 2023-03-16T13:01:31.2733333+00:00
Wael Bouchnak 26 Reputation points
commented 2023-03-20T10:35:26.2666667+00:00
Wael Bouchnak 26 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.
475 questions
asked 2023-03-19T18:37:30.1933333+00:00
David Thielen 621 Reputation points
answered 2023-03-20T10:23:37.8866667+00:00
Jack J Jun 21,576 Reputation points Microsoft Vendor
1 answer

Does Get method in System.Management.ManagementObjectSearcher require admin rights?

I would like to use something like the following C# code to check whether the system it is on has a TPM, and of which version it is. [...] using System.Management; [...] System.Management.ManagementObjectSearcher searcher = new…

.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.
977 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,578 questions
asked 2023-03-20T09:53:54.86+00:00
Private Coder 0 Reputation points
answered 2023-03-20T10:22:18.7933333+00:00
Castorix31 68,306 Reputation points
1 answer

Add rows into datatable and insert multiple row into database

I am calling data on text field (Search_Prdno) event change to populate dropdown list and text field , now i want to insert multilpe rows into html table using json and insert into database from text field and dropdownlist View <div…

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,486 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
713 questions
asked 2023-03-20T07:40:18.3+00:00
akhter hussain 2,741 Reputation points
answered 2023-03-20T10:02:00.23+00:00
Lan Huang-MSFT 11,196 Reputation points Microsoft Vendor
0 answers

Samples for Xamarin.iOS projects should be upgraded to .NET SDK-style projects in Xamarin Support Policy

I developed a cross-platform applications with Xamarin.iOS.framework and Xamarin.Mac.framework and Mono.framework. I found some anxious information in https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin. I want to know what's the quickest…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,053 questions
asked 2023-03-20T02:48:22.8133333+00:00
Sun, Tracy (LNG-SHA) 0 Reputation points
commented 2023-03-20T09:57:12.49+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor
0 answers

Load data and add new data loop through difference

when insert data is finished into a table A and loop through table A to get the value compared with the data on the datagridview, which is table B. table B only retrieves 1 field of information and adds new as many new columns as you like. why when…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,800 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,486 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
489 questions
asked 2023-03-20T09:49:31.4133333+00:00
Dao Duy Luat 0 Reputation points
edited the question 2023-03-20T09:50:42.7233333+00:00
Dao Duy Luat 0 Reputation points
1 answer

Hot to read Specific line of text in notepad and display in datagridview where value repeated multiple lines in a large notepad file

Hello Great Mind ! I am beginner in programming and still learning. This forum help me a lot to easy my job. I am not a programmer professionally, I do coding for my own works. Previously I need help to write text in notepad and a user of this group…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,959 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,735 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
852 questions
asked 2023-03-19T09:49:58.3166667+00:00
Amit kumar Yadava 21 Reputation points
edited a comment 2023-03-20T09:28:27.54+00:00
Amit kumar Yadava 21 Reputation points
2 answers

Fails to deploy to Android on vs2019 but not with vs2022

After installing vs2022 (17.1.0 preview 1.1) alongside vs2019 (16.11.7), I am unable to deploy my apps to the Android emulator on vs2019. On vs2019 I am met with, Error: SB6006: "java.exe" exited with code 2" every time it tries to deploy…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,916 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
722 questions
asked 2022-01-03T16:47:42.427+00:00
Damian 1 Reputation point
answered 2023-03-20T09:26:50.8433333+00:00
Ahmed Thabet 0 Reputation points
0 answers

Access the same method by two different worker threads

I am working on a C# project where I am trying to remove the duplicacy as i have declared the three methods named GetObjArr , copydata and Filter at least two times which are doing the same thing. i have got success in removing the duplicacy for the…

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,486 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
852 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.
977 questions
asked 2023-03-10T10:47:20.7233333+00:00
ankit goel 401 Reputation points
commented 2023-03-20T09:21:00.18+00:00
blasco air 0 Reputation points
2 answers

how to show an arrow button when scrolling a gridview in panel using java script and asp.net?

Hi members i want to show a button when scrolling a gridview in panel i have tried in normal page and thats work fine this is my code <script type="text/javascript"> $(document).ready(function () { //Hide Back to top…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
500 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,315 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,959 questions
asked 2023-03-17T08:30:40.42+00:00
HOUSSEM MAHJOUBI 266 Reputation points
answered 2023-03-20T09:15:03.41+00:00
peiye zhu 10 Reputation points
0 answers

PDF generation loop issue

We have a project in which we generate multiple pdfs in a loop. As per the loop, around 1000 pdfs should be generated. But only 27 are generated. It gets stuck at the 28th pdf every time. We tried generating the 28th pdf seperately and it generates fine.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
852 questions
asked 2023-03-17T05:33:06.88+00:00
Annie Kuris 0 Reputation points
commented 2023-03-20T09:14:54.6466667+00:00
Minxin Yu 3,861 Reputation points Microsoft Vendor
0 answers

Is there anyway to fix the precision problems in C# without using the decimal datatype?

So I'm using double datatype for most of my calculations and when I compare my results with the calculations from an online calculator sometimes there are differences in the decimal part of the number. Also even during calculations 3 * 3.5 =…

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,486 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
25 questions
asked 2023-03-20T09:08:59.3733333+00:00
Hrishikesh P 0 Reputation points
0 answers

CollectionView layout issues with nested CollectionView (unpackaged on Windows)

I'm working with an unpacked app targeting Windows 10. (<WindowsPackageType>None</WindowsPackageType>) I've had this problem with CollectionView since the release of MAUI where items are not sized properly on first display. The user must…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,053 questions
asked 2023-03-19T16:20:14.0733333+00:00
TerryH 40 Reputation points
edited a comment 2023-03-20T09:08:15.85+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor
3 answers

Invoking azure functions server SignalR group functions from ASP.NET Core Client

I am trying to invoke azure functions server SignalR group functions from an ASP.NET Core client. The server side code that I am trying to invoke via an ASP.NET Core client can be found in this article. I have not found a single reference of a C#…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,800 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
79 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,769 questions
asked 2023-02-22T11:00:39.4466667+00:00
Bubba Jones 151 Reputation points
edited a comment 2023-03-20T08:46:51.7666667+00:00
Bubba Jones 151 Reputation points
0 answers

RecyclerView With GridLayoutManager Not Scrollable

I have 2 RecyclerView(s): One using a LinearLayoutManager, one using a GridLayoutManager. The LinearLayoutManager works great, and allows me to scroll vertically as I want. The GridLayoutManager, however, refuses to scroll. Here is the xml for the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,916 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
852 questions
asked 2023-03-16T23:43:17.47+00:00
Nathan Sokalski 4,051 Reputation points
commented 2023-03-20T08:26:27.24+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,351 Reputation points Microsoft Vendor
0 answers

how to copy charts one excel sheet to another excel sheet using Openxml?

we tried copy charts one excel sheet to another excel sheet using opexml but once copied drawing part from existing to append on new workbook sheet .its corrupted .please share how to copy charts to excel sheets using openxml?

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,486 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
852 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,362 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
266 questions
asked 2023-03-17T07:48:07.9366667+00:00
ask question 0 Reputation points
commented 2023-03-20T07:59:06.55+00:00
Jack J Jun 21,576 Reputation points Microsoft Vendor
2 answers

Printing a particular div tag with labels and images intact in their positions

I have this div tag where labels, image controls and background image are displayed. The background image is gotten from database and displayed in the div like this: protected void Page_Load(object sender, EventArgs e) { if…

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,486 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
852 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.
458 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,315 questions
asked 2023-03-18T09:31:56.73+00:00
Donald Symmons 1,226 Reputation points
answered 2023-03-20T07:57:49.05+00:00
QiYou-MSFT 1,331 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Are these vb codes can be covert to vb.net codes and change the browser from IE to EDGE?

I want to conver these codes to vb.net and make it work the same. My EDGE version is 111.0.1661.41 Any suggestions? Private Declare Function SetForegroundWindow Lib "user32" _ (ByVal hWnd As Long) As Long Private Declare Function ShowWindow…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,959 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
852 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,436 questions
asked 2023-03-16T09:33:04.8966667+00:00
Y H 40 Reputation points
accepted 2023-03-20T07:52:25.32+00:00
Y H 40 Reputation points