Microsoft Q&A

.NET

13,026 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,026 questions with .NET-related tags

Sort by: Updated
3 answers

Creating similar screen in ASP.NET (Web forms)

Hi, I would like to create something similar to this in ASP.NET: Which is the best way to do it? Thanks

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
asked 2023-02-03T14:08:07.0766667+00:00
Bill Johnson 1 Reputation point
answered 2023-02-04T17:50:28.72+00:00
Albert Kallal 3,451 Reputation points
1 answer

'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)

I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…

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.
6,997 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-01-30T12:24:14.4933333+00:00
Kim Strasser 361 Reputation points
edited a comment 2023-02-04T17:38:07.9833333+00:00
Kim Strasser 361 Reputation points
0 answers

Error at Add-Migration CreateIdentitySchema

Error: ...The type or namespace name 'Areas' does not exist in the namespace 'Authentication' (are you missing an assembly…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,583 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-03T16:33:09.2233333+00:00
Dean Everhart 441 Reputation points
commented 2023-02-04T17:33:39.26+00:00
AgaveJoe 17,216 Reputation points
2 answers

what is the difference between constructor and properties

i mean in case we should declare a field as private is it better to declare a public property or using constructor? why? and if NO what is the usage of property? thank you very much :)

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.
6,997 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
629 questions
asked 2023-02-04T08:18:06.5933333+00:00
mohammad hoseini 0 Reputation points
answered 2023-02-04T17:21:00.6833333+00:00
Bruce (SqlWork.com) 28,276 Reputation points
2 answers

running application from linux arm using httpclient I have exception calling an api http with self signed certificate

Using dotnet 7 my application calls a https api service in my local network with self signed certificate. I run it from a Windows client and I have no problems. I run it from a linux arm raspberry device and I have the following exception: "One or…

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.
6,997 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.
149 questions
asked 2023-02-04T15:55:17.5+00:00
Renzo 0 Reputation points
answered 2023-02-04T17:16:38.5033333+00:00
Bruce (SqlWork.com) 28,276 Reputation points
1 answer

how to write to file that is open

My program writes to a file. The user can needs to be able open file read it. This gives an error, when trying add more data to file This is for C#

.NET
.NET
Microsoft Technologies based on the .NET software framework.
629 questions
asked 2023-02-04T13:18:16.3966667+00:00
Jordan Halgunseth 1 Reputation point
edited an answer 2023-02-04T17:10:33.5166667+00:00
Viorel 82,906 Reputation points
0 answers

Define 2 roles for our ASP.NET Core MVC 6.0 (Admin & Users). if we do not have registration and we are authenticating users using MS Identity Manager

I created a new ASP.NET Core MVC 6.0 web application >> and i define it to use Microsoft Identity Platform for authentication, as follow:- so we do not manage or register users inside back-end. now we need to define all users to have…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,583 questions
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.
347 questions
asked 2023-02-04T16:07:03.08+00:00
john john 681 Reputation points
0 answers

I do not know what happened in this code

this is a Blazor code that sends my friend to me and I do not know where I highlighted the code "x" what do , please explain me . thank you . @page "/" <table> <tr> <td>کد ملی:</td> <td…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
794 questions
asked 2023-02-03T06:40:45.2133333+00:00
hamed farjad 0 Reputation points
commented 2023-02-04T14:53:21.2+00:00
perfect code 161 Reputation points
0 answers

Blazor Server Castom Elements cross-domain

The Castom Elements function provided by the latest blazer server cannot put custom elements under websites with other domain names. Is there any way to solve the cross-domain problem

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,583 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.
794 questions
asked 2023-02-04T14:40:40.37+00:00
雨 时 0 Reputation points
edited the question 2023-02-04T14:43:11.3933333+00:00
雨 时 0 Reputation points
1 answer One of the answers was accepted by the question author.

Layout design for mobile and desktop (width, height and density)

I want to display data tables in an application on mobile as well as in the web browser or on the desktop and I want it to look appropriate. My idea is to show or hide the table columns depending on the width of the screen ( Note: I can open the row…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,583 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.
794 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.
6,997 questions
asked 2023-02-02T19:10:53.21+00:00
perfect code 161 Reputation points
accepted 2023-02-04T14:39:08.6766667+00:00
perfect code 161 Reputation points
3 answers One of the answers was accepted by the question author.

Azure B2C AD with thousand subdomains

I have MS Azure B2C AD login setup in Blazor Server. The shared URL is https://login.subone.dev.mymaindomain.com. The redirect URL is https://login.subone.dev.mymaindomain.com/signin-oidc. It works perfectly. I have added another site:…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
794 questions
Azure Active Directory External Identities
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,708 questions
asked 2023-01-11T17:38:54.09+00:00
Andrey Kuznetsov 40 Reputation points
answered 2023-02-04T14:35:08.9933333+00:00
Christopher Tejeda 0 Reputation points
0 answers

Lentitud al presionar el cuarto caracter en textbox en el metodo textchanged c#

Tengo una aplicación en donde estoy realizando una búsqueda de paciente con su historial clínico en base a su apellido y nombre, el código es el que adjunto a continuación el cual es 100% funcional ya que cumple su labor de búsqueda pero en determinado…

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.
6,997 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
219 questions
asked 2023-02-04T13:54:01.23+00:00
Roberto Carlos Espinosa 0 Reputation points
edited the question 2023-02-04T13:55:14.4633333+00:00
Roberto Carlos Espinosa 0 Reputation points
1 answer

How to save login state when close browser?

when signed HttpContext.SignInAsync(claimsPrinciple); when I close the browser the cookie is not valid and I need login again. builder.Services.AddAuthentication("Cookie").AddCookie("Cookie", options => { options.Cookie.Name =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,583 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.
408 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
asked 2023-02-04T00:18:52.4966667+00:00
打玻璃 1,526 Reputation points
edited an answer 2023-02-04T13:32:32.12+00:00
AgaveJoe 17,216 Reputation points
1 answer

how can i disable the arrows and enter key when I edit the datagridview cell in vb.net

Aslam o Alikum I am making a project in vb.net and I am facing a problem in datagridview when i am typing some word in a cell when i press the up or down key then my cursor move to next cell. i want when i press the enter key then my cursor is move to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
629 questions
asked 2023-02-04T11:19:15.6333333+00:00
Muhammad Usman Qader 0 Reputation points
edited an answer 2023-02-04T12:14:43.6+00:00
Reza Aghaei 3,761 Reputation points Microsoft MVP
0 answers

Non legge due certificati di firma digitale contemporaneamente

Non legge due certificati di firma digitale, seppure visibili nelle rispettive porte usb

.NET
.NET
Microsoft Technologies based on the .NET software framework.
629 questions
asked 2023-02-04T11:29:10.42+00:00
Antonio Vergura 0 Reputation points
3 answers

Parallax Background in web page - Setting div element background to transparent does not work for me

I don't know if I'm having a senior moment or not... I'm trynig to implement a parallax scrolling type of display in a web page. I have sourced the sample code from W3 Schools and adapted it, by adjusting margins basically (Please see -…

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.
408 questions
asked 2023-02-03T02:55:59.9233333+00:00
Zahir Khan 0 Reputation points
answered 2023-02-04T10:51:00.39+00:00
Zahir Khan 0 Reputation points
1 answer

BackgroundService - Is it possible to set parameter value?

Hi, I have a background service. I wonder if it is possible to set a parameter to this service from the Blazor Server application or in any other way? Thank you in advance.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,583 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.
794 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.
6,997 questions
asked 2023-02-02T16:43:45.4+00:00
Cenk 686 Reputation points
commented 2023-02-04T10:15:19.72+00:00
Cenk 686 Reputation points
0 answers

I changed the startup form but not applied in visual studio 2022

Hi, I changed the startup form but not applied in visual studio 2022, also any other changes I make doesn't take place although there is no errors in the error list, please help

.NET
.NET
Microsoft Technologies based on the .NET software framework.
629 questions
asked 2023-02-03T07:11:56.92+00:00
Hossam 0 Reputation points
edited a comment 2023-02-04T10:06:05.4166667+00:00
Hossam 0 Reputation points
1 answer One of the answers was accepted by the question author.

EF Core 6 - Adding records based on a condition

Hi friends, In my Blazor server application, I am inserting BulkPurchaseRequest records into DB as follows. public class BulkPurchaseRequestsRepository : IBulkPurchaseRequestsRepository { private readonly OyunPalasContext _oyunPalasContext; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,583 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.
794 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
424 questions
asked 2023-02-01T17:33:09.4066667+00:00
Cenk 686 Reputation points
commented 2023-02-04T09:04:35.3033333+00:00
Cenk 686 Reputation points
1 answer

Get reminders based on data in a database

I want to get reminders for some Appointments that I have saved in database and they have a notificationTime property witch is the time when a notification needs to be displayed. My approach so far is to write some kind of job that runs 1 or 2 times a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
629 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,818 questions
asked 2023-01-29T17:37:55.69+00:00
Bogdan Nicoara 0 Reputation points
commented 2023-02-04T09:02:45.07+00:00
Bogdan Nicoara 0 Reputation points