Microsoft Q&A

.NET

12,920 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,920 questions with .NET-related tags

Sort by: Updated
2 answers

Referencing multiple projects with top-level statements

I have two projects A and B. Each project has a single top-level statement Program.cs file. I made the Program class visible from each project by enabling internals: <InternalsVisibleTo Include="MyTargetProject" /> The problem is that…

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,942 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
616 questions
asked 2023-01-30T16:34:45.33+00:00
Ernest 1 Reputation point
answered 2023-01-31T09:13:23.57+00:00
Ernest 1 Reputation point
0 answers

Upload a File One drive using MS Graph API in C#

when I am Uploading a File using Onedrive MS graph API in C# the file get Uploaded but every time i got a mail to that one drive account. I have set all notifications off from the one drive settings but still i am getting an email on every time file…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,185 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
301 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
570 questions
asked 2023-01-26T18:56:59.4+00:00
Pradyut Sinha 11 Reputation points
edited the question 2023-01-31T09:05:23.63+00:00
Zehui Yao_MSFT 3,431 Reputation points Microsoft Employee
0 answers

Maui customise Entry elements for android issue

Hi all This code work but 1 Why I forced to add the using directive 2 Why its not working when I put it in content page constructor My Entry elements background color is lost why so. From the internet solutions the same …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-03T11:17:45.68+00:00
Haviv Elbsz 481 Reputation points
commented 2023-01-31T09:05:13.88+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,491 Reputation points Microsoft Employee
0 answers

asp.net c# news and details

hello everyone, I have a news page on my website, but when I add news, the image title and text appear. How can I add news as seen in the example I would appreciate your help

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,185 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,942 questions
asked 2023-01-18T08:05:26.5866667+00:00
kadir koçaslan 0 Reputation points
edited a comment 2023-01-31T09:04:56.4066667+00:00
Lan Huang-MSFT 9,041 Reputation points Microsoft Employee
0 answers

Hoe to share a document link for external user using one drive API

I am using Onedrive api for sharle a document link to extenal user in c# it is not working

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
301 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,185 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
45 questions
asked 2023-01-30T17:58:08.58+00:00
Pradyut Sinha 11 Reputation points
edited the question 2023-01-31T09:04:37.6066667+00:00
Zehui Yao_MSFT 3,431 Reputation points Microsoft Employee
0 answers

Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page..

Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page.. any solution ? Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-19T02:40:42.8666667+00:00
Sami 101 Reputation points
commented 2023-01-31T09:03:34.1166667+00:00
Sami 101 Reputation points
1 answer

Publicly declare Contacts

Hi, How can I publicly declare the following: var contacts = await Microsoft.Maui.ApplicationModel.Communication.Contacts.GetAllAsync(); something like this: Contacts contacts; contacts = await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-19T22:42:25.9966667+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-01-31T09:00:05.4933333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
1 answer

How to implement a customized splash screen in .iOS(.Net MAUI)?

Hi .Net MAUI team, I want to create customized splash screen images instead of a simple logo icon. Similar to Xamarin Form, we can able to customise the splash screen using "LaunchScreen.storyboard". but .Net MAUI we don't have an option. I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-19T09:40:01.24+00:00
Harshad Patel 0 Reputation points
commented 2023-01-31T08:58:03.0133333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Check if frame is in specified position .net maui

is it possible to check if there is anything in the specified position of a grid? for example: if (Frame in Grid.Position(1,7)) { Console.Write("Specified position is already in use."); } I am trying to make a map editor for my own custom…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
616 questions
asked 2023-01-24T08:13:42.0133333+00:00
Mielesplayz 261 Reputation points
edited a comment 2023-01-31T08:57:35.2566667+00:00
Mielesplayz 261 Reputation points
0 answers

Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985} (8d59f552-5e3e-48c3-a91e-e50041b57719 id=0x2)

I am using Version VS 17.5.0 Preview 2.017.5.0 Preview 2.0. In this when I debug it with my mobile it gives me error Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985}…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-30T08:42:52.66+00:00
anil kumar 51 Reputation points
commented 2023-01-31T08:57:10.3966667+00:00
anil kumar 51 Reputation points
1 answer

MAUI - CollectionView and scrolling - not working with IOS emulators

Hi I have an issue with my App and CollectionView and scrolling, when testing with IOS emulators. The scrolling does not work on any IOS emulators if more than one page is displayed. It works fine with Android and Windows. Below is a snippet of…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-01T20:41:30.207+00:00
Riffy 206 Reputation points
commented 2023-01-31T08:54:21.6233333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

"Güncelle" button not working

ı dont undestand. Delete's working but update(Güncelle) not working. Where's my mistake ?

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.
399 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
590 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,185 questions
asked 2023-01-31T06:19:44.85+00:00
Harun Ergün 100 Reputation points
edited a comment 2023-01-31T08:53:25.92+00:00
Viorel 82,646 Reputation points
2 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…

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,942 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,185 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.
399 questions
asked 2023-01-30T11:57:08.06+00:00
kadir koçaslan 0 Reputation points
edited a comment 2023-01-31T08:45:16.1833333+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
0 answers

Empty listview items after down and up scrolling

Hi, iOS app, MVVM pardigm, I populate an ObservableCollection of a custom type and through BindingContext populate a ListView on the Page. that works fine. I can see the ListView items properly and can scroll it. What I constantly see is when I scroll…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-30T09:02:03.32+00:00
yaron kadman 81 Reputation points
edited a comment 2023-01-31T08:44:07.0733333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
0 answers

Entity Framework 框架问题

dbcontext不同的实例,savechanges被互相影响怎么回事

.NET
.NET
Microsoft Technologies based on the .NET software framework.
616 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
421 questions
asked 2023-01-31T08:38:53.5766667+00:00
赐 张 0 Reputation points
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,942 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
616 questions
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,174 questions
asked 2023-01-30T09:35:18.2+00:00
luckyy 0 Reputation points
edited a comment 2023-01-31T08:38:31.6266667+00:00
luckyy 0 Reputation points
1 answer

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,540 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.
399 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
590 questions
asked 2023-01-30T05:36:04.64+00:00
打玻璃 1,506 Reputation points
answered 2023-01-31T08:38:29.36+00:00
Xinran Shen - MSFT 881 Reputation points Microsoft Employee
0 answers

Session is not clearing after signing out from application razor pages

Hi, I want to clear my sessions,once i logout from my application. Now when i logout from application and click the back button,its navigating to the previous page. My logout button is given as a menu in _Layout page like this <li…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-31T04:04:24.65+00:00
Blooming Developer 196 Reputation points
commented 2023-01-31T08:16:19.9533333+00:00
Blooming Developer 196 Reputation points
0 answers

How should a service exit to prevent an error?

I'm developing a Windows service in C#, .NET 6.0 following the instructions on https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service The service runs as expected, but when I stop the service, it logs an error A task was…

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,942 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
616 questions
asked 2023-01-30T23:11:11.52+00:00
Andy Reynolds 0 Reputation points
commented 2023-01-31T08:10:48.1966667+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
1 answer

Disable Specific Date and all the past dates in Razor pages

i want to disable specific dates and all the past dates in Razor pages calendar. I have database table to store the specific dates, i want to fetch from there and disable the dates in the razor pages calendar. <input…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-13T08:50:03.6966667+00:00
Blooming Developer 196 Reputation points
commented 2023-01-31T08:09:42.9766667+00:00
Zhi Lv - MSFT 18,701 Reputation points Microsoft Employee