Microsoft Q&A

.NET

12,898 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,898 questions with .NET-related tags

Sort by: Updated
0 answers

fileupload emty error !!!

Hello friends, if the file upload is empty SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Holding_DB"].ConnectionString); con.Open(); SqlCommand cmdSelect = new…

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.
396 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,931 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,179 questions
asked 2023-01-30T11:57:08.06+00:00
kadir koçaslan 0 Reputation points
0 answers

Timespan.FromHours(24) not working after publish application on Azure app service

Hi i hi have one small simple application which logs the information. So I have one basic application which is using System.Threading.Timer and setup timer to run my function once a day and create logs. Ex. _timer = new Timer(callbackAsync, null,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
Azure App Service Static Web Apps
asked 2023-01-30T05:41:27.6566667+00:00
Rohan 0 Reputation points
commented 2023-01-30T11:38:15.5166667+00:00
Viorel 82,476 Reputation points
0 answers

how to replace retired flashupload functionality with fileupload for single image in asp.net?

how to replace retired flashupload functionality used for uploading multiple images with fileupload for uploading single image in asp.net? Since flashplayer has reached end of support, I need to replace with existing alternative of fileupload control by…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
asked 2023-01-30T11:35:16.76+00:00
Omble, Omkar [JANIE NON-J&J] 0 Reputation points
0 answers

Button click event is not firing

Greetings again dear experts. I have an .aspx page with two sections One section allows our users to enter records displays existing records for update. The second allows users to preview the records, whether insert or update before submitting to the…

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.
396 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,826 questions
asked 2023-01-30T04:06:30.6633333+00:00
Simflex 81 Reputation points
commented 2023-01-30T11:25:29.3933333+00:00
Viorel 82,476 Reputation points
3 answers One of the answers was accepted by the question author.

c# use tablename as variable

How can i use tablename as a variable in sql query? "select * from table_name " table_name must be variable.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,535 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.
8,481 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,931 questions
asked 2023-01-30T06:44:59.1066667+00:00
ÖMER NASUHİ KESKİN 0 Reputation points
accepted 2023-01-30T11:06:25.29+00:00
ÖMER NASUHİ KESKİN 0 Reputation points
2 answers

EF Core 6 Adding a table manually?

Hello friends, I am working on a web API project that I implemented with the code-first approach. I wonder if there is a problem creating tables manually without using migrations. Does it cause any problems? Thank you.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2023-01-17T14:19:19.31+00:00
Cenk 666 Reputation points
commented 2023-01-30T10:53:03.3866667+00:00
Cenk 666 Reputation points
0 answers

how to bind to taghelper property in razor pages?

[HtmlTargetElement("pagination")] public class PaginationTagHelper : TagHelper { [HtmlAttributeName("page-index")] public int PageIndex{get;set;} } and in Index.cshtml <pagination page-index="PageIndex" /> I can not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,535 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.
396 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
587 questions
asked 2023-01-30T05:36:04.64+00:00
打玻璃 1,446 Reputation points
commented 2023-01-30T10:18:48.0166667+00:00
Farid Uddin Kiron MSFT 81 Reputation points Microsoft Employee
2 answers

Edge browser showing windows security popup

We have implemented MSAL authorization in our web application but when we are executing visual studio code locally, solution running fine with IE but not with edge browser, its showing windows security credentials popup.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,591 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,179 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.
145 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,329 questions
asked 2023-01-24T07:21:08.0833333+00:00
Nitin Patil 0 Reputation points
commented 2023-01-30T10:18:05.3866667+00:00
Shweta Mathur 11,076 Reputation points Microsoft Employee
2 answers

Windows 10 .Net 6 or .Net 7 runtime getting error Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=7.0.0.0

.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,578 questions
asked 2023-01-25T08:31:29.4233333+00:00
RTAYLI Oumaima 0 Reputation points
answered 2023-01-30T10:05:10.1066667+00:00
MayankBargali-MSFT 49,456 Reputation points Microsoft Employee
4 answers

Web form issue

Hi, I get "undefined" unexpectedly to the column/field below, while there is the proper row value returned from the table. What is the reason? html += "<td >货币</td><td style='font-weight:…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
444 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.
396 questions
asked 2023-01-20T07:49:30.2666667+00:00
Peter_1985 1,831 Reputation points
commented 2023-01-30T09:59:52.35+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
1 answer

how can add validation 2 drowdownlist

The user comes and selects the city from the first dropdownlist. If the first value is selected from the second dropdownlist, I want it to give an error. I want to add validation but failed. Help me please ? Where is my mistake ? my code ; var…

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.
396 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
587 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.
145 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,179 questions
asked 2023-01-30T08:28:51.2766667+00:00
Harun Ergün 20 Reputation points
answered 2023-01-30T09:56:58.1866667+00:00
Lan Huang-MSFT 8,881 Reputation points Microsoft Employee
1 answer

500 internal server error in Windows server 2012 with IIS 8 for ASP.net core 6 mvc

I know this is a common errors but i am getting desperate and frustrated. I have published to folder my ASP.net Core 6 MVC application and deployed in a server running Windows 2012 and IIS 8 and I am getting the server error 500. I have tried going…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,535 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,149 questions
asked 2023-01-27T02:50:11.1333333+00:00
cebuhax0r 21 Reputation points
edited a comment 2023-01-30T09:47:36.4666667+00:00
Ruikai Feng - MSFT 246 Reputation points Microsoft Employee
1 answer

Net Maui How to show or hide ( collapsed ) content in stacklayout or grid ?

<StackLayout ZIndex="1" x:Name="Page" IsVisible="true" ></StackLayout> <StackLayout x:Name="Page2" IsVisible="false" ></StackLayout>

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-15T00:02:06.5266667+00:00
Sami 101 Reputation points
commented 2023-01-30T09:41:57.34+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
0 answers

When Wpf datagrid apply group, the application becomes very slow.

My wpf application is build with .net framework 4.5.2, when datagrid apply group, in some computers the wpf application becomes very slow, but other computers do not have this problem. If the wpf application build with .net framework 4.8, all computers…

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,931 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
asked 2023-01-30T09:35:18.2+00:00
luckyy 0 Reputation points
edited the question 2023-01-30T09:38:06.95+00:00
luckyy 0 Reputation points
1 answer

Loop through Controls in ScrollView and Get the Data

Hi, In below XAML: <ScrollView x:Name="ScrollViewDetails" Grid.Row="1"> <VerticalStackLayout> <VerticalStackLayout x:Name="StackLayoutPhones"> <BindableLayout.ItemTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
885 questions
asked 2023-01-20T21:11:41.77+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-01-30T09:30:43.07+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
0 answers

Azure multi tenant microservice architecture and many app registrations

Let's say I have a multi tentant microservice architecture fronted with an API gateway of which a client app calls to access the microservices behind. Let's say it's grown to a complex system that has 50 microservices all needing user…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,535 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,312 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,591 questions
asked 2023-01-28T15:31:40.0166667+00:00
Dan 0 Reputation points
edited the question 2023-01-30T09:22:09.7433333+00:00
MayankBargali-MSFT 49,456 Reputation points Microsoft Employee
1 answer

How can caming towns null ?

When the city is selected, it comes with the town. But when the city is selected, I want the town to be empty and for the user to select it. I want when user choose city second drowboxlist caming null how can add ? my code is ; For example…

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.
396 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
587 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,179 questions
asked 2023-01-30T06:39:03.31+00:00
Harun Ergün 20 Reputation points
edited an answer 2023-01-30T09:18:59.63+00:00
Lan Huang-MSFT 8,881 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

how to get parameter name in c#?

public string BuildParameter(object[] para) { var parameters = ""; for (var i = 0; i < para.Length; i++) { if (para[i] != null) { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,535 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
607 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 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.
956 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
483 questions
asked 2023-01-30T05:50:44.7+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-30T09:17:44.13+00:00
打玻璃 1,446 Reputation points
0 answers

How to setup Vnet integration between ASP.NET 4.8 Azure Service V3 app and SQL Managed Instance?

I just created a simple ASP.NET Web Forms app to Azure Service - Premium V3 plan. This app runs fine as long it does not access our database in SQL Managed Instance (MI). When trying to access the database (a simple SQL SELECT statement in the…

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,312 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.
396 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,179 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
1,175 questions
Azure SQL Database
asked 2023-01-17T16:43:22.7466667+00:00
Jan J. Vopalensky 0 Reputation points
commented 2023-01-30T09:17:18.79+00:00
Jan J. Vopalensky 0 Reputation points
1 answer

Error XA3001: Could not AOT the assembly: Xamarin.Forms.Platform.Android.dll (XA3001)

Hi, I am trying to archive the project for publication. It worked before. I fixed the camera permission and tried to archive it, it threw the following message and the process failed. "Error XA3001: Could not AOT the assembly:…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,805 questions
asked 2023-01-23T05:26:13.7266667+00:00
Kam M 21 Reputation points
commented 2023-01-30T09:07:24.8066667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee