Microsoft Q&A

.NET

20,641 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,641 questions with .NET-related tags

Sort by: Updated
2 answers

Problem in the size of the form and controls at the time of execution

I have created a form in the form of image 1, but at the time of execution, the distance between the controls increases and the size of the form also increases. What is the problem? Image 2 is at runtime. I have also used TableLayoutPanel to place 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,971 questions
asked 2023-09-11T10:17:47.9166667+00:00
Mohammad Hasan Salmanian 45 Reputation points
edited a comment 2023-09-25T23:26:00.17+00:00
KOZ6.0 395 Reputation points
1 answer

Failing to save and display Save and display Images from sql Table in ASP .Net

I am creating a web application in ASP .Net, and I want to save and display pictures from an SQL table. I need help

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,634 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,940 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-25T11:44:47.3533333+00:00
Lumbo Chenge bin 20 Reputation points
answered 2023-09-25T21:01:56.5+00:00
Erland Sommarskog 87,431 Reputation points
0 answers

Azure Application has 2 Web RedirectURIs, startup.vb attempts to only go to 1 even if the other is specified.

I have a .net application that is using Azure authentication and the application has 2 defined redirect URIs. 2 URIs are https://ovfsstoreorders.frischs.com/default.aspx and https://extranet.frischs.com/https/ovfsstoreorders.frischs.com/default.aspx In…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,621 questions
asked 2023-09-25T20:32:37.35+00:00
Worthington, Charity 0 Reputation points
1 answer One of the answers was accepted by the question author.

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.
987 questions
asked 2023-09-24T17:42:33.1333333+00:00
Lyoon 0 Reputation points
accepted 2023-09-25T19:50:40.8433333+00:00
Lyoon 0 Reputation points
2 answers

Conditional validation depending which MVC button pushed

I have a scaffolded form in MVC with two buttons, Save and Submit. I want conditional validation: Save, no validation; Submit, validation. In the cshtml I have: ... <td> @Html.EditorFor(model => model.DSCRPTN, new { htmlAttributes = new…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-25T13:56:00.5533333+00:00
J Fisher 0 Reputation points
commented 2023-09-25T19:46:30.8866667+00:00
AgaveJoe 520 Reputation points
1 answer

key for ticket in asp ticket store for login

I am doing app with login with ticket store. Problem is that I wish to obtain new key to be in cookie each time it is used. So I wish new key after each use. I tried to log out and log in controller to get new key but it fails to work. It gives me same…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2023-09-24T17:17:09.4166667+00:00
jacek.sniadecki2022 0 Reputation points
answered 2023-09-25T19:36:05.25+00:00
Bruce (SqlWork.com) 44,301 Reputation points
1 answer

Bot to accept human commands

Hi I want to cerate a basic bot which understands simple user commands in English such as 'book staff John Smith on job xyz' and executes the actions on a backend database as insert queries. How do I go about doing this? Where to start? What…

Azure Bot Service
Azure Bot Service
An Azure service that provides an integrated environment for bot development.
670 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,048 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
1,004 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
1,677 questions
asked 2023-09-19T15:10:07.7866667+00:00
-- -- 796 Reputation points
edited an answer 2023-09-25T19:19:41.0566667+00:00
YutongTie-MSFT 36,746 Reputation points
0 answers

Visual Studio - "pending add" what is it and why can I no longer add images to my solution

So I am adding an ImageButton no problem. I add an image using add existing file. It does not show ??????? Now when I look at Solution Explorer the image says Pending Add. I have now spent an hour looking for help and all I see is problems with this…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,781 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-25T19:13:25.1566667+00:00
Lloyd Sheen 1,191 Reputation points
0 answers

Is MAUI a production ready to upgrade an iOS/Android Xamarin Forms project to?

We have iOS and Android apps written with Xamarin Forms. We know XF has reached end of life and the upgrade path is to move to MAUI. However, MAUI gets very negative comments and I'm wondering if this upgrade is really a good idea. See the comments at…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,151 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,048 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-25T19:05:54.52+00:00
Scott 0 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,561 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,971 questions
asked 2023-09-23T00:46:59.4233333+00:00
Ed Januskis 46 Reputation points
edited a comment 2023-09-25T18:54:52.5+00:00
KOZ6.0 395 Reputation points
3 answers

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,634 questions
asked 2023-09-24T16:42:14.5033333+00:00
Markus Freitag 3,361 Reputation points
edited an answer 2023-09-25T18:51:18.07+00:00
Lex Li (Microsoft) 3,821 Reputation points
7 answers One of the answers was accepted by the question author.

.NET Framework 4.8 on Windows Server 2019 - installation failes

I have tried the solutions in other questions regarding installation failures of .NET Framework 4.8, but nothing have helped me so far. The server is fully patched and rebooted. (Note! We use a WSUS but I do not know what updates are allowed or…

.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 2021-06-17T15:06:41.08+00:00
Kristofer 126 Reputation points
edited a comment 2023-09-25T18:36:55.8466667+00:00
Brown, Hagen 1 Reputation point
1 answer One of the answers was accepted by the question author.

Use a different Blazor project inside the MAUI application

Hi there, I'd like to use a different project (within the same solution) to be used inside a MAUI webview. The structure looks like: Solution Blazor application MAUI wrapper application The MAUI wrapper application should start the Blazor…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,048 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,105 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-20T18:24:09.8633333+00:00
Gerwim 20 Reputation points
accepted 2023-09-25T18:21:10.9633333+00:00
Gerwim 20 Reputation points
1 answer

WPF Tabcontrol Resizing Issue

Hi All, I have a Tabcontrol inside grid which is inside WPF page. I want Tabcontrol to resize to complete width and height of page. I have set grid height and width to "*" and horizontalalignment and verticalalignment of tabcontrol to…

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,477 questions
asked 2023-09-25T16:12:14.4066667+00:00
Pratham Jain 161 Reputation points
answered 2023-09-25T17:54:07.96+00:00
Viorel 102.4K Reputation points
2 answers

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,561 questions
asked 2023-09-24T17:33:46.7466667+00:00
jewel 461 Reputation points
answered 2023-09-25T17:31:34.48+00:00
random name picker 0 Reputation points
2 answers

how to use script files in blazor project inside index.html?

I have a blazor webassemly project , I want to use javascript files , I put them in wwwroot folder and call them in index.html by thos way <script src="/js/bracket.js"></script> I am sure the path is correct but also not working…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,048 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 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,105 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,971 questions
asked 2023-09-25T07:15:58.0533333+00:00
Haneen Al-fakhry 0 Reputation points
answered 2023-09-25T16:51:24.73+00:00
Bruce (SqlWork.com) 44,301 Reputation points
1 answer

Call Webapi JWT

Capturebearer.JPG Capturepostman.JPG Capturepostman.JPG The Auth Controller C:\Users\allam\source\repos\VisitsApi\VisitsApi\Controllers\AuthController.cs Returns a Token . The call to https://localhost:7070/api/Visits works in Postman …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2023-09-25T13:18:05.5+00:00
Dotnet Engineer 260 Reputation points
answered 2023-09-25T16:25:17.5566667+00:00
Bruce (SqlWork.com) 44,301 Reputation points
0 answers

How do I programmatically "restart" an Android app in.Net maui?

How do I programmatically "restart" an Android app in.Net maui? I have been trying to restart the application when the system reboot in .net maui app AndroidManifest.xml BootBroadcastReceiver.cs using global::Android.App; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-25T15:57:33.59+00:00
San Sheva Santhanaraj 0 Reputation points
0 answers

MAUI: The content page and pop up pages are breaking in normal running

I am facing a weird issue in my new MAUI project. When LIVE running in visual studio all of my pages are working fine. But when I open the app normally, the app is breaking on some of the pages, but no issue in LIVE running. The same pages are working…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-25T15:29:08.9033333+00:00
Sakshi Poojary 20 Reputation points
0 answers

MAUI: How to add splash screen in android platform

I am trying to add splash screen on my new MAUI application. I tried the implementation on this blog but the image is in circle (Android 12 device) and only showing black and white color on the icon. Is there anyway to show the real color of the icon on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-25T15:20:10.3266667+00:00
Sakshi Poojary 20 Reputation points
edited the question 2023-09-25T15:27:57.95+00:00
Sakshi Poojary 20 Reputation points