Microsoft Q&A

.NET

20,616 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,616 questions with .NET-related tags

Sort by: Updated
1 answer

Transfer the WebApi application to another PC, test it, without a development environment?

Hello, @AgaveJoe https://learn.microsoft.com/en-us/iis/application-frameworks/scenario-build-an-aspnet-website-on-iis/configuring-step-1-install-iis-and-asp-net-modules The target machine needs a host like IIS to host Web API. We have no idea how your…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,633 questions
asked 2023-09-24T16:42:14.5033333+00:00
Markus Freitag 3,361 Reputation points
edited the question 2023-09-25T01:17:33.2333333+00:00
Lan Huang-MSFT 17,806 Reputation points Microsoft Vendor
0 answers

Printing panel on webform in a4 format

hello, how can I print the panel on the webform in A4 format?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,633 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,777 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.
8,962 questions
asked 2023-09-22T17:49:45.2966667+00:00
sahin kaya 0 Reputation points
edited the question 2023-09-25T01:17:24.93+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

Create a New Asp.Net Application Dialog Issue

I am unable to create an ASP.NET application on Net Framework 4.8.1 because the Create New Asp.Net Application Dialog does not show any option. I am using Microsoft Visual Studio Community 2022 (64-bit). Version 17.7.4 with Windows 11 Pro

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,777 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
985 questions
asked 2023-09-24T19:37:39.7+00:00
AHSAN ALI 1 Reputation point
answered 2023-09-25T01:15:23.3966667+00:00
SurferOnWww 1,136 Reputation points
1 answer

Setting XML Root XMLNS

Hi, Everybody! I need to create a Shipment XML root whose xmlns is the following fictitious XSD URL: http://api.company.com/schemas/api/company-api-vN.xsd. <?xml version="1.0"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,044 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.
8,962 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.
1,042 questions
asked 2023-09-19T12:11:16.19+00:00
Julio Bello 201 Reputation points
commented 2023-09-25T01:10:36.29+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
2 answers

Strategies for Implementing Real-Time Notifications in a .NET Blazor App?

I am developing a .NET Blazor application and exploring different strategies to implement real-time notifications. Can anyone share insights, recommendations, or resources on this topic?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,044 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 questions
asked 2023-09-23T15:56:24.41+00:00
Hugo Windsor 0 Reputation points
edited the question 2023-09-25T01:07:24.04+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

Best Practices for Securing API Keys in a .NET Blazor Application?

I am working on a .NET Blazor application that interacts with several external APIs. I am looking for best practices and recommendations on how to securely store and manage API keys within the application to prevent unauthorized access and potential…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,044 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 questions
asked 2023-09-23T14:36:02.97+00:00
William Goodfellow 0 Reputation points
edited the question 2023-09-25T01:05:38.2733333+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

How to Optimize Database Interactions in Entity Framework Core?

I am using Entity Framework Core for database interactions in my .NET application. I am seeking advice on optimizing database queries and transactions for better performance and efficiency. Any tips or best practices would be appreciated.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
584 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,044 questions
asked 2023-09-23T16:04:26.41+00:00
Kevin Beasley 0 Reputation points
edited the question 2023-09-25T01:03:32.43+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

Best Practices for Managing Application State in Blazor WebAssembly?

I am developing a Blazor WebAssembly application and exploring different approaches to managing application state efficiently. Can anyone provide recommendations or best practices for state management in Blazor WebAssembly?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,044 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 questions
asked 2023-09-23T16:04:45.95+00:00
Kevin Beasley 0 Reputation points
edited the question 2023-09-25T01:02:35.64+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

How to Integrate Real-Time Features in a .NET MAUI Application?

I am building a cross-platform application using .NET MAUI and looking to integrate real-time features such as notifications and data syncing. What are the recommended approaches and technologies for implementing real-time functionality in .NET MAUI?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,044 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,845 questions
asked 2023-09-23T16:05:07.88+00:00
Kevin Beasley 0 Reputation points
edited the question 2023-09-25T01:01:42.85+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

Strategies for Implementing CI/CD Pipelines in .NET Projects?

I am looking to set up Continuous Integration and Continuous Deployment (CI/CD) pipelines for my .NET projects. What are the recommended tools, strategies, and best practices for implementing CI/CD in .NET development?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,433 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,044 questions
asked 2023-09-23T16:15:15.08+00:00
Bruce Barker 0 Reputation points
edited the question 2023-09-25T00:58:52.0966667+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

How to Securely Handle User Sessions and Cookies in ASP.NET Core?

I am developing a web application using ASP.NET Core and need to manage user sessions and cookies securely. Can anyone provide recommendations or best practices for securely handling user sessions and cookies in ASP.NET Core?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 questions
asked 2023-09-23T16:27:26.35+00:00
Bruce Barker 0 Reputation points
edited the question 2023-09-25T00:57:16.9433333+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

Recommendation for Blazor Server use for an application

I would like to know if Blazor Server would be recommended as the way to go for an application that does the following Needs to run on any device able to run .NET apps (i.e. Raspberry PI etc.) Needs to access IOT devices (JSON strings received or sent…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 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.
1,103 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.
10,926 questions
asked 2023-09-23T22:07:05.4433333+00:00
Robert Salasidis 111 Reputation points
commented 2023-09-24T23:57:05.77+00:00
Robert Salasidis 111 Reputation points
0 answers

ASP.NET Core MVC: Unable to set focus on input element on view load

I am trying to set focus using javascript on the first unfocused input element of MVC view in a load window event listener. But element is focused only after page reloading. Attached browser - MS Edge I tried reloading the page programmatically using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
688 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
985 questions
asked 2023-09-24T21:57:19.01+00:00
Stanislav Panferov 45 Reputation points
edited the question 2023-09-24T23:18:29.9266667+00:00
Stanislav Panferov 45 Reputation points
2 answers One of the answers was accepted by the question author.

permanent footer row in datagridview

hi , is there a way by which our datagridview control could have a footer row below exactly after the 12 rows and if the rows in the datagridview increases , suppose by 2 . it should always be at last position but it always should be after 12 rows . the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 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.
8,962 questions
asked 2023-09-21T12:32:58.41+00:00
ankit goel 566 Reputation points
edited an answer 2023-09-24T23:18:20.1933333+00:00
KOZ6.0 310 Reputation points
0 answers

Unable to run MAUI Android app

Hi, Why I am suddenly getting this error when trying to run MAUI's Android app? /Users/jassim/Downloads/MyApp: Error JAVA0000: Error in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,845 questions
asked 2023-09-24T20:56:07.6633333+00:00
Jassim Al Rahma 26 Reputation points
1 answer

Decimal price input is not a number

Good evening, I have started a new ASP.NET mvc project that works with EntityFramework. When I create a decimal Price (with Precision(18,2)) and generate a CRUD on it, the validation indicates that it is not a valid number with an input of 23,23. I…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
985 questions
asked 2023-09-24T17:42:33.1333333+00:00
Lyoon 0 Reputation points
answered 2023-09-24T19:48:21.4333333+00:00
Bruce (SqlWork.com) 44,076 Reputation points
3 answers

How to secure API KEY in .net MAUI?

I am new to .Net MAUI but fairly experienced with ASP.NET CORE and Blazor. I'm developing a MAUI application that will allow a user to integrate with third-party services using API keys. My issue is, I'd like to store API Key securely and nobody can…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,845 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.
8,962 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.
241 questions
asked 2022-10-16T08:11:56.553+00:00
ASAD ALAM 1 Reputation point
answered 2023-09-24T19:33:47.28+00:00
Bruce (SqlWork.com) 44,076 Reputation points
2 answers

VS 2022 .net6 core C#. Application.StartupPath is different at run time.

Hi, I am trying to capture my project home directory: string exeFolder = Application.StartupPath; While i test app i am getting path with MyPath"bin\Debug\net6.0-windows". in result i cannot access my report folder with reports. Is there a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 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.
8,962 questions
asked 2023-09-23T00:46:59.4233333+00:00
Ed Januskis 46 Reputation points
commented 2023-09-24T18:51:42.62+00:00
Mavaddat Javid 16 Reputation points
0 answers

Wavy underline of a text in the textbox using adorner.

//pathPen is used to draw line with square cap at start and end. Pen pathPen = new Pen(new SolidColorBrush(Colors.Red), 0.2); pathPen.EndLineCap = PenLineCap.Square; pathPen.StartLineCap = PenLineCap.Square; //pathGeometry is used to draw…

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,475 questions
asked 2020-08-05T05:24:19.513+00:00
Naveen kumar 1 Reputation point
commented 2023-09-24T18:25:18.88+00:00
Vahid Ghafarpour 6,015 Reputation points
1 answer

How to get the data from start date to end date

How can I find data from database between two dates. Problem-1. How can I find the data from the database between the two dates if I consider the parameters. Problem-1. If I use date as parameter then my datatable doesn't show data. Problem-2. I want to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,557 questions
asked 2023-09-24T17:33:46.7466667+00:00
jewel 461 Reputation points
answered 2023-09-24T18:02:02.1033333+00:00
Vahid Ghafarpour 6,015 Reputation points