23,089 questions with .NET-related tags

Sort by: Updated
1 answer

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,174 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,177 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,953 questions
asked 2024-02-27T05:26:56.4+00:00
Donald Symmons 2,746 Reputation points
answered 2024-02-27T14:34:30.7833333+00:00
AgaveJoe 25,761 Reputation points
0 answers

Error accessing web application: ":( Application Error If you are the application administrator, you can access the diagnostic resources."

Hi, I am following the instructions in the module "Develop and configure an ASP.NET application that queries an Azure SQL database". I finally was able to build the web app after getting some help in Q&A. However, when I tried to access the…

Azure SQL Database
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
618 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,013 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
700 questions
asked 2024-02-25T13:52:30.7966667+00:00
YAU NICHOLAS HENG WAH 20 Reputation points
edited a comment 2024-02-27T14:20:51.2333333+00:00
YAU NICHOLAS HENG WAH 20 Reputation points
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,318 questions
asked 2024-02-26T13:08:05.7933333+00:00
Saeed Pooladzadeh 221 Reputation points
edited a comment 2024-02-27T14:11:49.81+00:00
Saeed Pooladzadeh 221 Reputation points
0 answers

Pentesting Blazor Server Apps

Hi, I came across a web app that is using Blazor Server, all the communication is happening through SignalR. Now in traditional web apps, pentesters use ZAP/Burp to intercept the traffic and manipulate with it. i.e. test access controls by toggling the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,013 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,318 questions
asked 2024-02-27T13:50:50.58+00:00
Najam ul Saqib 60 Reputation points
1 answer

CS5001 Program does not contain a static 'Main' method suitable for an entry point

I developed ASP.NET website for five years. Recently I upgraded to VS2022 recent release, then R-Click on the project name in Solution Explorer I ran "Analyze and Code Cleanup". Now, I get a build error "CS5001: Program does not contain a…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,177 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,953 questions
asked 2024-02-27T11:49:12.7533333+00:00
Noorann Tech 0 Reputation points
answered 2024-02-27T13:44:08.76+00:00
Noorann Tech 0 Reputation points
2 answers

Registering user over an e-mail

I have a legacy app that registers user (user first and second name, e-mail and password) with the server. Server accepts registration (creates the login entry in the database) and sends a verification e-mail to the user to verify that the user has…

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,174 questions
asked 2024-02-25T12:35:59.5066667+00:00
JD 1 Reputation point
edited a comment 2024-02-27T13:00:52.82+00:00
JD 1 Reputation point
4 answers

SAML Toolkit for C# and ASP.NET

Is there any SAML Toolkit for C# and ASP.NET? I want to integrate SAML 2.0 into my existing ASP.NET application. I have done the research for plugins/toolkits for. NET. I haven't found any from Microsoft. Please help me on this.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,177 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,953 questions
asked 2023-01-30T13:25:03.8966667+00:00
Sai Kiran Naidu 5 Reputation points
commented 2024-02-27T12:54:14.36+00:00
Ilya 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to integrate Firebase Analytics in .NET MAUI.

How to integrate Firebase Analytics in .NET MAUI. for previous Xamarin application follow this URL and it's working both android and iOS devices and log proper data - https://thewissen.io/using-firebase-analytics-in-your-xamarin-forms-app/ but in MAUI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,587 questions
asked 2024-01-10T14:53:47.1333333+00:00
Bhuwan 516 Reputation points
commented 2024-02-27T12:46:52.45+00:00
Bhuwan 516 Reputation points
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,587 questions
asked 2024-02-26T10:05:45.4433333+00:00
דני שטרית 2,226 Reputation points
commented 2024-02-27T12:35:21.8466667+00:00
דני שטרית 2,226 Reputation points
1 answer

Affected .net versions by CVE-2024-0057

Hello, I am concerned about CVE-2024-0057 and would like to know if .NET Core is affected. I have checked the security advisory here and can see that all supported versions of .NET (.NET 6 through .NET 8) are impacted. However, I am specifically…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,174 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,953 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,101 questions
asked 2024-02-23T10:58:23.21+00:00
Matěj Prášek 0 Reputation points
commented 2024-02-27T12:21:37.6666667+00:00
Matěj Prášek 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to Implement Two Way Binding In Blazor

When I change the slider Interest amount should be automatically calculated and displayed without user clicking on Submit Button. @page "/" @using System.Text; @using System.Net.Http.Headers; @using Microsoft.AspNetCore.Components; @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,318 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,587 questions
asked 2024-02-23T16:31:06.1866667+00:00
Maui Learner 300 Reputation points
edited a comment 2024-02-27T11:56:48.43+00:00
Maui Learner 300 Reputation points
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,008 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,174 questions
asked 2024-02-26T10:01:30.8133333+00:00
OSMark 0 Reputation points
commented 2024-02-27T11:07:44.4933333+00:00
JananiRamesh-MSFT 18,936 Reputation points
0 answers

Which "Maps SDK for Android" version being used in Xamarin.Forms.Maps 5.0.0.2083?

Hi Team, We are currently using Xamarin.Forms.Maps (5.0.0.2083) in our Xamarin Projects. We need to know which "Maps SDK for Android" version the above package uses. com.google.android.gms:play-services-maps: ?? Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,257 questions
asked 2024-02-27T11:05:41.8866667+00:00
Vinayagamoorthy K 0 Reputation points
1 answer

Maui for android one row HorizontalStackLayout issue

Hi All I have this HorizontalStackLayout I wantthe 4 controls to be in one row How I achieve this so that the last label '?' to be at the end of the row. currently what I get is 'RTL Writing ?' I know I can do it in grid.Thank you. …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,587 questions
asked 2024-02-26T06:41:30.0466667+00:00
Haviv Elbsz 1,751 Reputation points
commented 2024-02-27T11:05:20.13+00:00
Haviv Elbsz 1,751 Reputation points
3 answers One of the answers was accepted by the question author.

Blazor Web Assembly - On refresh getting - HTTP Error 404.0 - Not Found - after publishing the app in IIS

I published a sample blazor WASM app and deployed it in IIS in my local machine. I'm able to access all the pages in from the hosted port, however when i refresh the page on counter or weather i'm getting below error - home page refresh is working the…

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,318 questions
asked 2024-02-03T11:22:35.54+00:00
Dixan Thomas 60 Reputation points
accepted 2024-02-27T11:03:13.1966667+00:00
Dixan Thomas 60 Reputation points
1 answer One of the answers was accepted by the question author.

"Microsoft.Azure.WebJobs.Host: Error indexing method" after upgrade

Hello, I am doing the upgrade of my project from .netcore3.1 to .net7 (isolated process), azure functions from v3 to v4 and CosmoDB to v4. After changing every Microsoft.Azure.WebJobs.Extensions.* reference to the corresponding…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,008 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,174 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,359 questions
asked 2024-02-26T16:14:37.71+00:00
Stefania Grillo 0 Reputation points
accepted 2024-02-27T10:48:28.1866667+00:00
Stefania Grillo 0 Reputation points
1 answer

How can visually impaired people control mobile programs with screen readers when they run them with XAMARIN?

Hello masters I am visually impaired and I am very interested in software development. I have previously worked and learned on desktop applications with .net C# architecture. Now I want to learn the mobile side with Visual Studio using XAMARIN. My…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,257 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,953 questions
asked 2024-02-26T06:56:25.3533333+00:00
fatih uyanık 60 Reputation points
commented 2024-02-27T09:52:08.9+00:00
fatih uyanık 60 Reputation points
1 answer

How to hide mouse cursor in MAUI on Windows

I want to hide the mouse cursor in a Maui application that will be used on touchscreens. The application host a webview ( Webview2 on windows) How can i achieve this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,174 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,587 questions
asked 2024-02-24T20:57:52.68+00:00
Morten Tvedten 20 Reputation points
edited a comment 2024-02-27T09:49:25.0233333+00:00
Morten Tvedten 20 Reputation points
1 answer

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
answered 2024-02-27T09:48:25.3233333+00:00
Hui Liu-MSFT 25,511 Reputation points Microsoft Vendor
1 answer

Issue with Label in ListView: Unable to Navigate to URLs in HTML Text with Dynamic Data and Identifying Clicked URLs

I'm currently working on a Microsoft Maui application where I have a ListView containing labels. These labels display dynamically generated HTML-formatted text obtained from data, and within this text, there could be multiple hyperlinks to external URLs.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,174 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,587 questions
asked 2024-02-23T16:16:20.89+00:00
Shahid Abbas 5 Reputation points
commented 2024-02-27T09:22:20.9433333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,011 Reputation points Microsoft Vendor