Microsoft Q&A

.NET

14,038 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,038 questions with .NET-related tags

Sort by: Updated
2 answers

How to bind table data dynamically to pdfmake table body using jquery

I have created a HTML Table and I want to download selected columns into pdf using pdfmake below is my code example html code :- <div id="tablediv"> <table id="stockalloctbl_1"> <thead> <tr…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,325 questions
asked 2023-03-27T10:52:54.96+00:00
Ashok Kumar 121 Reputation points
edited a comment 2023-03-28T14:24:38.75+00:00
Ashok Kumar 121 Reputation points
4 answers

SQL Server 2022 install on Windows 10 fails with error that .NET is not installed, but it is installed and up to date

I have installed SQL Server 2022 Developer edition successfully on a Windows 10 and 11 virtual machine. The issue is that I cannot install it on a physical machine. During the install, I get the following fatal error. I have tried to install the latest…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 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.
9,120 questions
asked 2023-03-23T18:04:44.7966667+00:00
MJ Skeet 0 Reputation points
commented 2023-03-28T14:18:12.53+00:00
MJ Skeet 0 Reputation points
0 answers

Viewing Embed Link (Thumbnail) that is the content of a property

I would like to be able to access an embed link that is the string content of a property in the same manner that the code below allows me to access a web link that is the string content of a property. <a href=@Html.DisplayFor(modelItem =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,837 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-27T20:06:49.5466667+00:00
Dean Everhart 906 Reputation points
commented 2023-03-28T13:46:37.27+00:00
Dean Everhart 906 Reputation points
0 answers

Custom configuration provider with sqlserver

Hi everyone, I need to create my own customized provider configuration with a sqlserver database in order to offer my client (who manages his website) to change some settings. My idea is to use the settings in the json file for the "system"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,837 questions
asked 2023-03-27T11:11:05.1166667+00:00
Salvatore Sanollo 0 Reputation points
commented 2023-03-28T13:43:15.77+00:00
Salvatore Sanollo 0 Reputation points
0 answers

What does this mean?

I've just downloaded a sample C# project from Github, and after opening, my references all look like this: What do these warnings mean? I can't find a related message anywhere in the Visual Studio 2019 UI. How do I know what's wrong?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 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,796 questions
asked 2023-03-27T22:39:47.4033333+00:00
DavidPendleton-7654 1 Reputation point
commented 2023-03-28T13:34:22.0933333+00:00
DavidPendleton-7654 1 Reputation point
0 answers

How can I figure out what nuget package is throwing an error about Xamarin.Android.Support.v4 no longer supported?

I have an old Xamarin.Forms app for iOS and Android that I am trying to upgrade to work on the latest Android OS. When I build I get these errors: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,926 questions
asked 2023-03-27T21:22:32.47+00:00
Tony Pitman 21 Reputation points
commented 2023-03-28T13:14:18.6766667+00:00
Tony Pitman 21 Reputation points
2 answers

Upgrade Xamarin Forms Cross Platform Library from NetStandard2.x to Net7

I am trying to use the Acr.UserDialogs nuget package. I was using an older version with an older build of my Xamarin.Forms app for Android. I have a library that uses it that is cross platform. When I try to upgrade the Acr.UserDialogs package it tells…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,926 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
493 questions
asked 2023-03-27T20:38:12.3+00:00
Tony Pitman 21 Reputation points
commented 2023-03-28T13:09:42.08+00:00
Tony Pitman 21 Reputation points
3 answers One of the answers was accepted by the question author.

Change font in MAUI Blazor?

I have downloaded the font Comfortaa and saved it in the directory wwwroot/css/open-iconic/font/. In the file index.html I loaded the font under <style>: I also specified the alternative font "courier new". As you can see, it seems…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,085 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,578 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.
884 questions
asked 2023-03-27T19:09:16.13+00:00
perfect code 271 Reputation points
accepted 2023-03-28T13:07:24.1633333+00:00
perfect code 271 Reputation points
1 answer One of the answers was accepted by the question author.

Convert.ToDouble(String) does not throw an overflow exception when max_value is exceeded

I use .NET 8.0 on vscode. In documentation (for .NET 8.0) of Convert.ToDouble(String) there is OverFlow Exception when Double.MaxValue is exceeded, but when I convert a string that represents a value>Double.MaxValue, it doesn't throw an exception, but…

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,578 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 questions
asked 2023-03-23T13:50:28.57+00:00
d'ARIENZO SAMUELE 0 Reputation points
accepted 2023-03-28T12:49:07.6566667+00:00
d'ARIENZO SAMUELE 0 Reputation points
0 answers

How to update appSetting for a Background Service (Service Worker) (.NET 6)

Hello, I came to ask you for your help, please. I have created a Worker Service which periodically deletes files in a folder. My path to the folder is stored in an App.config file, I read the value via ConfigurationManager. It works, but I want to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,837 questions
asked 2023-03-28T12:34:00.33+00:00
tma9 1 Reputation point
edited the question 2023-03-28T12:45:05.1133333+00:00
tma9 1 Reputation point
1 answer

Exapand glyphicon-plus glyphicon-plus when collapsed on button click

I have a page with bootstrap glyphicon-plus glyphicon-minus in a span with a class. when the page loads the span is collapsed by default and I need to Expand it on a button click programmatically. I am doing $("#btn-search").click(function…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
517 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-24T19:53:12.94+00:00
Benjoe 386 Reputation points
commented 2023-03-28T12:01:25.9133333+00:00
Benjoe 386 Reputation points
0 answers

asp.net תקלה

היי הורדתי visual studio 2022 אני מחפשת ליצור פרויקט של asp.net enpty web site ואני לא מוצאת זה נותן לי רק asp.net core מה לעשות? תודה

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,796 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.
464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,325 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,837 questions
asked 2023-03-28T11:46:25.9633333+00:00
noga hominer 0 Reputation points
0 answers

Programatically force winform app to open at 125 scaling using Dotnet core 6

We have built a DPI Unaware Winform app using DotNet core 6 which works fine on windows operating system with 100% and 125% scaling options on all devices whether it's laptop or desktop . Example screenshot for the 125 scaling is given below The moment…

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,578 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,401 questions
asked 2023-03-27T12:17:02.6366667+00:00
Sunny Sharma 1 Reputation point
commented 2023-03-28T11:11:30.0633333+00:00
David Lowndes 4,381 Reputation points MVP
0 answers

How can word file displayed in a div container be printed in a pdf format?

I am trying to have a single page that will can be used to display either a word (.doc/.docx) or a PDF file. Instead of having two pages, each for word and pdf files. It’s a success but printing either of these formats in PDF is where I have…

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.
464 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,578 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,325 questions
asked 2023-03-28T10:44:36.1866667+00:00
Donald Symmons 1,266 Reputation points
edited the question 2023-03-28T11:06:02.42+00:00
Donald Symmons 1,266 Reputation points
5 answers One of the answers was accepted by the question author.

ApiAuthorisation with foreign key

Hi, I have an application where it's necessary to have an ApiAuthorisation means to have several individual account. Also I need to use a foreign key. I defined modelBuilder has below : protected override void OnModelCreating(ModelBuilder…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
884 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,578 questions
asked 2023-03-25T19:03:34.56+00:00
sblb 876 Reputation points
edited a comment 2023-03-28T11:04:04.2666667+00:00
AgaveJoe 20,151 Reputation points
3 answers One of the answers was accepted by the question author.

How to run windows task schedular using Service Account

I am developing many tools using .NET EXE and SSIS packages. My question is, I want to run all the scheduler (EXE and SSIS Packages) using service account. I have two accounts. One is "Admin" Account. Two is "Service" Account. Admin…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
1,957 questions
asked 2023-03-21T12:55:44.82+00:00
Gani_tpt 1,261 Reputation points
accepted 2023-03-28T10:42:18.5666667+00:00
Gani_tpt 1,261 Reputation points
0 answers

How to read the large data from serial port in visual c++/cli

i am trying to read the large file from serial port expected output 112 212 311 411 but i get new line between some data like output 112 212 /n 311 /n 411 I got some extra new line .how to solve it private: System::Void…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,837 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,756 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,950 questions
asked 2023-03-28T07:27:53.0066667+00:00
denesh neupane 121 Reputation points
commented 2023-03-28T10:32:39.2466667+00:00
Viorel 88,656 Reputation points
0 answers

How to hide net maui tabbar correctly?

How to hide net maui bottom tabs correctly? To see it, create maui project, add two pages, name them FirstPage, SecondPage. add shell tabbar, for example two tabs: 1st tab, 2nd tab, set datatemplate for them FirstPage. Then create in FirstTab Button to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,085 questions
asked 2023-03-28T10:26:43.95+00:00
0 answers

In MAUI, Top status bar is not display properly if I change it from Portrait to Landscape mode

In above image, on top left you can see the status bar background color is not updating in landscape mode, in portrait mode it's working file but as soon as I rotate into landscape mode it showing me like this. Not sure why it is happening only for ios.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,085 questions
asked 2023-03-27T15:44:05.6266667+00:00
Mane, PRASHANT GORAKH 31 Reputation points
commented 2023-03-28T10:16:32.7033333+00:00
Mane, PRASHANT GORAKH 31 Reputation points
2 answers

Printing a div card with exact styles as it appears on the web page

On my web form, I have these div card where there are labels with values, and two image controls. The labels on the card can have their font-family and color changed by the user o the client side to the desire of the user, using controls provided to do…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
887 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.
464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,325 questions
asked 2023-03-25T13:15:41.9733333+00:00
Donald Symmons 1,266 Reputation points
edited a comment 2023-03-28T10:02:30.2766667+00:00
Donald Symmons 1,266 Reputation points