23,921 questions with .NET-related tags

Sort by: Updated
0 answers

MAUI: The CollectionView items collide with each other when scrolling

When I try to scroll top to bottom at that time, the CollectionView items collide on the iOS platform, but it works fine on the Android platform. Below, I am adding a screenshot and Screen record of this issue. Screenshot: Screen Record: screen record…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T14:07:42.5733333+00:00
Sreejith Sreenivasan 691 Reputation points
commented 2024-04-30T05:36:51.6666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Upgrading to .Net 8 results in errors when referenced by a project targeting '.NetFramework=4.61'

I am using the upgrade assistant to upgrade the framework, but it's resulting in many errors. Is there any documentation available that explains step-by-step how to fix the errors that occur during the framework upgrade process?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
3 questions
asked 2024-04-29T22:40:37.7233333+00:00
Ziya Ganjili 0 Reputation points
edited the question 2024-04-30T05:35:18.4666667+00:00
Pradeep M 390 Reputation points Microsoft Vendor
1 answer

ASP.NET framework 4.8 code for file uploding into Azure storage/container using FileUpload control

Hello For file uploading into Azure Storage / containers using the FileUpload control—preferably upon button click—ASP.NET framework 4.8 code is required. Thanks in advance Regards Chandrakant

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,697 questions
asked 2024-04-29T17:12:45.4533333+00:00
Chandrakant Pawle 61 Reputation points
answered 2024-04-30T05:33:48.7366667+00:00
Umar Pathan 0 Reputation points
0 answers

MAUI: Background color is not updating when changing the mode (iOS)

When changing the mode I am updating the background color and text color of the UI via code. It was working fine on Android side but when I check it on iOS, the Listview background color is not updating properly. Expected Output of light and dark mode is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T13:42:50.5933333+00:00
Sreejith Sreenivasan 691 Reputation points
commented 2024-04-30T04:38:11.8066667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
1 answer

Support of Azure Notification Hubs’ Firebase Cloud Messaging legacy API will be retired by 1 July 2024

I am using ASP.NET Core Web API to send push notifications to Android and iOS devices using the method given below. I am not using any API endpoint directly. Should I change anything in this? string jsonPayLoad = string.Empty; …

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
262 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,174 questions
asked 2024-04-24T05:33:45.3866667+00:00
Vijay Pratap Singh 21 Reputation points
answered 2024-04-30T04:35:52.8833333+00:00
SnehaAgrawal-MSFT 18,361 Reputation points
1 answer

How to set JDK path used by dotnet build command

Hello, We build our .NET MAUI app for android using the dotnet publish command on the command line. During the build, the wrong version of the JDK (Java Development Kit) gets picked. How can we specify the path to the JDK that should be used for the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T07:00:01.4566667+00:00
Simon 0 Reputation points
commented 2024-04-30T04:22:08.71+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
2 answers

Localize application display name of iOS developed with .NET MAUI?

Display name is localized on android in "Resources\values" folder and it works as expected. However, I can't make it work with iOS. What has been done: My solution : In info.plist : In InfoPlist.strings : In csproj : When I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-25T23:11:33.74+00:00
Omar H 0 Reputation points
commented 2024-04-30T04:20:52.46+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
0 answers

In Web API creation exercise, response won't load, claims security issue

I'm running a Web API I've set up with the instructions here: https://learn.microsoft.com/en-us/training/modules/build-web-api-aspnet-core/3-exercise-create-web-api I have not modified this app from its original state. I used dotnet run and it says the…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
3 questions
asked 2024-04-26T16:00:45.5166667+00:00
McKathlin 0 Reputation points
edited the question 2024-04-30T04:18:07.0566667+00:00
Pradeep M 390 Reputation points Microsoft Vendor
1 answer

Visual Studio Designer Copy With Name

I created a new label. It came with "label1" name. I changed the name "label1" to "myLabel1". I'm copying this: "myLabel1" When I paste it comes as: "label1" It wasn't like this before. When I paste must…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 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,614 questions
asked 2024-04-27T05:37:43.91+00:00
Doğukan Topaloğlu 0 Reputation points
commented 2024-04-30T04:14:03.3333333+00:00
Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
2 answers

How to view/show image from file server path on button click

i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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.
10,259 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,526 Reputation points
commented 2024-04-30T03:42:33.17+00:00
Albert Kallal 4,651 Reputation points
3 answers

How to upload file and view those file in modal popup using gridview

I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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.
10,259 questions
asked 2024-04-17T14:56:04.6833333+00:00
Gani_tpt 1,526 Reputation points
commented 2024-04-30T03:33:10.6166667+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

How can I prevent window titles from overlapping in a Maui app with shell navigation and modals?

I'm developing a Maui app with shell navigation and modals, and I'm encountering an issue with overlapping window titles. When navigating from the main page to another page using shell navigation, a back button appears, causing the window title to shift…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-25T16:52:05.36+00:00
Ansh 0 Reputation points
commented 2024-04-30T03:29:22.38+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to calculate years from two different date in ASP.NET C#

I have Employee Admission Date which is stored in SQL table. In the ASP.NET click event, i want to calculate and find the years from the Admission Date and Current Date. For example, Admission Date : 10-MAR-2023 Current Date : 28-APR-2024 condition is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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.
10,259 questions
asked 2024-04-28T17:11:24.31+00:00
Gani_tpt 1,526 Reputation points
commented 2024-04-30T03:29:04.6233333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

how to implement logger and save logs files .net maui 8

how to implement logger and save logs files .net maui 8 using ChangeBox.Configuration; using ChangeBox.Handlers; using ChangeBoxMobileApp.GeneralServices; using CommunityToolkit.Maui; using MetroLog.MicrosoftExtensions; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T14:51:11.8266667+00:00
Ashutosh Mehere 0 Reputation points
answered 2024-04-30T03:04:24.3066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
0 answers

OutputCaching issue in .NET 8.0

Hi, I have implemented the Output Caching in ASP.NET Core 8.0 and deployed the same S3 bucket and Lambda function and its exposed through AWS API gateway. After implementation output cache and I have tested the local swagger API through postman first…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,174 questions
asked 2024-04-26T11:48:11.7033333+00:00
Venkat 1 Reputation point
commented 2024-04-30T03:04:18.3066667+00:00
Venkat 1 Reputation point
1 answer

Using ApplyQueryAttributes Method with Constructor

How can I use the ApplyQueryAttributes Method of IQueryAttributable to retrieve a value for a parameter in my viewmodel? The problem is that the method I want to use the parameter for is in the constructor and ApplyQueryAttributes has not executed before…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T21:43:57.18+00:00
Tom Meier 80 Reputation points
answered 2024-04-30T02:59:51.8866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
2 answers

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,381 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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.
10,259 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 196 Reputation points
commented 2024-04-30T02:54:25.35+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

Why WebBrowser doesn't show up in toolbox?

I want to make an own custom web browser so i looked for tutorial, when i at the insert WebBrowser extension, it's not shown up. I tried to reset and added it again, but it shows up "Added sucessfully but can't see or use in designer". I tried…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 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,614 questions
asked 2024-04-19T08:05:06.3166667+00:00
Ocean 0 Reputation points
commented 2024-04-30T02:44:34.6+00:00
Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
3 answers

Scriptmanager alert not displaying properly in same page

I am doing some simple screen add functionality and after end of saving, i am using scriptmanager.RegisterStartupScript() for save message. when i run the program, the alert have not been throwing properly. it showing same page but, without controls like…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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.
10,259 questions
asked 2024-04-29T17:12:15.2666667+00:00
Gani_tpt 1,526 Reputation points
answered 2024-04-30T02:40:19.3533333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

How do I add a CAPTCHA to a web site written with ASP.NET/VB

A bot seems to be using my web site to send out emails via AmazonSES. I want to add a CAPTCHA to it to prevent this. I came across https://stackoverflow.com/questions/71515717/how-to-add-captcha-in-asp-net-project which appears to be what I want, but…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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,574 questions
asked 2024-04-27T05:08:50.44+00:00
Robert Barnes 71 Reputation points
commented 2024-04-30T02:09:05.0966667+00:00
Robert Barnes 71 Reputation points