23,080 questions with .NET-related tags

Sort by: Updated
0 answers

Is it possible to prevent a Javascript function from executing in C# if record exista in DB?

Hello community, please I will like to ask if it possible that a Javascript function is prevented from executing from code behind (C#), if a record exists in a database? The reason why I haven't posted any code is that I want to first find out if it is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,172 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,176 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.
9,949 questions
asked 2024-02-27T05:26:56.4+00:00
Donald Symmons 2,746 Reputation points
1 answer

Debug using iPad that connected to Mac Mini using Windows-Mac connection

Hi, I have set up the Windows-Mac connection to debug MAUI iOS directly from the Windows machine. The connection is good. I also disabled the hot restart feature to get the iPad (which connects to the Mac Mini) debug. These are the errors I encountered…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,584 questions
asked 2024-02-08T16:00:14.8866667+00:00
Huynh Than 0 Reputation points
commented 2024-02-27T05:26:32.0733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,011 Reputation points Microsoft Vendor
1 answer

DEP0700: Registration of the app failed with PushNotification

In my .NET 8 MAUI application for Windows, I would like to receive push notifications even when the app is closed. For that, I tried to add a background task using this code: private async void RegisterBackgroundTask() { var builder = new…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,584 questions
asked 2024-02-26T16:30:34.42+00:00
Enrico Rossini 126 Reputation points
answered 2024-02-27T05:23:12.7866667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,566 Reputation points Microsoft Vendor
0 answers

How to limit translation hearing in 10 seconds

I am using microsoft speech SDF in my WPF application for continues translation.. Everything is working fine but my app listens to the speaker until he gives a break or pause. I want to set a timer so that if there is no break in 10 seconds it will start…

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,632 questions
asked 2024-02-26T21:00:49.8033333+00:00
Shahrier Erfan Harun 0 Reputation points
edited the question 2024-02-27T05:07:02.9266667+00:00
PRADEEPCHEEKATLA-MSFT 73,731 Reputation points Microsoft Employee
0 answers

How can I use Machine learning model builder in production?

Hi, I've seen there's a machine learning model builder in visual studio. What I've done is, I've train my data using that model builder, and consumed that's prediction from another project of mine. The problem is, whenever I retrain the data, my data…

.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
147 questions
asked 2024-02-27T04:21:46.9866667+00:00
Sourav 120 Reputation points
edited the question 2024-02-27T04:25:28.6833333+00:00
Sourav 120 Reputation points
1 answer

How to resolve error (4455,5) on Microsoft.Web.Publishing.targets

I want to publish my code to the Server, i am facing this error. "C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VisualStudio\v17.0\Web\Microsoft.Web.Publishing.targets(4455,5): 錯誤 ERROR_FAILED_TO_DESERIALIZE: Web…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,176 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,413 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
796 questions
asked 2024-01-31T04:31:40.19+00:00
阿法貝塔 0 Reputation points
edited a comment 2024-02-27T03:25:11.5166667+00:00
Lan Huang-MSFT 23,221 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Why does my public string not change between windows in C# (.net 8) and WPF?

Hi, I am trying to make a note app, so I need to change a public string value between two windows but the string value does not persist across the windows. The strings that are not changing are in the 2nd .cs file, "string edit_File_Name",…

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,632 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.
9,949 questions
asked 2024-02-26T01:35:43.9066667+00:00
T9 20 Reputation points
edited a comment 2024-02-27T03:20:54.2666667+00:00
Hui Liu-MSFT 25,511 Reputation points Microsoft Vendor
1 answer

Force run as administrator

My app needs to access other process' handle so it need run as administrator, I searched in google it tells me that add an app.manifest file into your project and modify some settings, but I can't find this kind of file in "Add new item"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,172 questions
asked 2024-02-23T03:27:55.03+00:00
William A Wang 236 Reputation points
commented 2024-02-27T03:20:44.0866667+00:00
Jiale Xue - MSFT 17,516 Reputation points Microsoft Vendor
1 answer

FIX REPATER HEADER WHILE SCROLLING AND EXPORT TO EXCEL

Hello This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default3" %> <html> <head runat="server"> <script…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,176 questions
asked 2024-02-26T11:09:28.23+00:00
RAVI 556 Reputation points
answered 2024-02-27T03:18:20.7333333+00:00
Lan Huang-MSFT 23,221 Reputation points Microsoft Vendor
1 answer

how to hide navigationbar in landescape?

I am using android in maui. I want to hide navigationbar but not in full screen mode (with the status bar not hide). If I set the SystemUIVisibility yes it is hide. but when I tap somthing the navigationbar will appeared. and If I detect…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,584 questions
asked 2024-02-17T08:36:00.3433333+00:00
mc 3,441 Reputation points
edited a comment 2024-02-27T03:13:44.6733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,011 Reputation points Microsoft Vendor
1 answer

Fullscreen issue in MAUI

my app shows a blackscreen at the bottom in emulator and in real device i have black line on top and bottom as well . I tried everything inside app in android activity .

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,172 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,584 questions
asked 2024-02-26T13:53:38.5933333+00:00
answered 2024-02-27T03:05:58.8133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,011 Reputation points Microsoft Vendor
1 answer

Regarding the android minsdk version in .net maui

Severity Code Description Project File Line Suppression State Error AMM0000 uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library C:\Mtechwebx folder\M-PriceCheker\obj\Debug\net7.0-android\lp\132\jl\AndroidManifest.xml as the…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
695 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,584 questions
asked 2024-02-26T11:16:21.29+00:00
Faizan Khan 0 Reputation points
answered 2024-02-27T03:02:16.4433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,566 Reputation points Microsoft Vendor
1 answer

Blazor AI imge generator

Hi, I'm trying to make an online AI image generator with blazor. It sounds like everything is correct but the app does nothing. Can you please guide me? Below you can see my code: @page "/" @using System.Net.Http.Json @using…

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,317 questions
asked 2024-02-26T13:08:05.7933333+00:00
Saeed Pooladzadeh 221 Reputation points
edited an answer 2024-02-27T02:50:01+00:00
Ruikai Feng - MSFT 2,421 Reputation points Microsoft Vendor
1 answer

how to create a display form in c#

how to create an interactive form in c#

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,632 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.
9,949 questions
asked 2024-02-09T16:37:35.9566667+00:00
Len G 0 Reputation points
commented 2024-02-27T02:31:00.15+00:00
Hui Liu-MSFT 25,511 Reputation points Microsoft Vendor
2 answers

How to Avoid a RelayCommand Error

In a ViewModel for a wpf window I have the following command: Private ReadOnly Property _AddVehicle As New RelayCommand(AddressOf OnAddVehicle()) Public ReadOnly Property AddVehicle As RelayCommand Get Return _AddVehicle End Get End Property I am…

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,632 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,499 questions
asked 2024-02-11T23:35:24.8333333+00:00
RogerSchlueter-7899 1,156 Reputation points
commented 2024-02-27T02:30:05.47+00:00
Hui Liu-MSFT 25,511 Reputation points Microsoft Vendor
0 answers

Develop Azure Functions using Visual Studio with examples targeting net8

The document Develop Azure Functions using Visual Studio https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/azure-functions/functions-develop-vs.md targets net6, is there a version that targets net8? The examples in the document have nullable…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,005 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,172 questions
asked 2024-02-26T10:01:30.8133333+00:00
OSMark 0 Reputation points
edited the question 2024-02-27T01:40:13.8233333+00:00
Anna Xiu-MSFT 23,146 Reputation points Microsoft Vendor
0 answers

Solutions for .NET Interop Issues involving Sensitivity Labels?

We have code that is supposed to create an Excel document via .NET Interop, then save this workbook. The problem is, starting with Office 365 Build 2312, the sensitivity label functionality has changed, seemingly to accommodate increased restriction on…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,178 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,172 questions
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
859 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,304 questions
asked 2024-02-26T17:59:41.4833333+00:00
JK 0 Reputation points
edited the question 2024-02-27T01:20:23.98+00:00
Jiale Xue - MSFT 17,516 Reputation points Microsoft Vendor
1 answer

How can I use different table in asp dot net identity rather that identityUser table, what configuration need to be done in the dbconxtext, controller and program.cs file?

I am beginner in Asp dot net core and I want to use make login functionality in my project but don't have an idea on how to do it, so if you can help me it would be great.

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
577 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,012 questions
asked 2024-02-26T10:57:54.2766667+00:00
Anthony Poudel 0 Reputation points
edited the question 2024-02-27T01:17:39.37+00:00
Lan Huang-MSFT 23,221 Reputation points Microsoft Vendor
1 answer

Maui - close up with confirmations

Hi, I'm using .Net 8. I want when user will close the app he will get promp: If confirm it willl do this code otherwise close operation will be cancell ? How is can be done ? My current code: builder .UseTelerik() …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,584 questions
asked 2024-02-26T10:05:45.4433333+00:00
דני שטרית 2,226 Reputation points
answered 2024-02-27T01:10:22.27+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,011 Reputation points Microsoft Vendor
1 answer

Active X Error

We have a Web application that can generate Excel file. We trigger creating the Excel in the front-end and the services will take care of the Excel creation in the background. Sometimes, we encountered error related to Active X. And sometimes, we…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,172 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,176 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.
12,276 questions
asked 2024-02-26T01:40:02.1+00:00
Louie 21 Reputation points
answered 2024-02-26T23:13:21.6833333+00:00
Bruce (SqlWork.com) 52,576 Reputation points