Microsoft Q&A

.NET

14,006 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,006 questions with .NET-related tags

Sort by: Updated
1 answer

There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'designid'.

When i am passing data from view to controller then below error is coming There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'designid'. <div class="form-group"> …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
734 questions
asked 2023-03-26T11:52:22.46+00:00
akhter hussain 2,881 Reputation points
commented 2023-03-26T18:40:24.46+00:00
akhter hussain 2,881 Reputation points
2 answers One of the answers was accepted by the question author.

How to Share Code Between Multiple Pages and Classes

I'm trying to share code between multiple Code Behind pages and multiple Classes that uses objects and methods of the Page class. Simple examples would be using the "response" and "session" objects. However, in my real example I'll be…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,968 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,324 questions
asked 2023-03-18T21:00:20.8733333+00:00
Ptownbro 20 Reputation points
edited a comment 2023-03-26T18:03:53.7433333+00:00
Ptownbro 20 Reputation points
3 answers

ApiAuthorisation with foreign key

Hi, I have an application where it's necessary to have an ApiAuthorisation means to have several individual account. Also I need to use a foreign key. I defined modelBuilder has below : protected override void OnModelCreating(ModelBuilder…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
882 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.
7,562 questions
asked 2023-03-25T19:03:34.56+00:00
sblb 871 Reputation points
edited a comment 2023-03-26T17:59:34.5033333+00:00
sblb 871 Reputation points
0 answers

CommunityToolkit.Maui.Storage.FileSaver on iOS strange

I have the latest release version of CommunityToolkit.Maui (5.0.0). When I run CommunityToolkit.Maui.Storage.FileSaver in my app on iOS I get a strange user interaction. The window shown looks like that in the iOS_FileSaver.png image attached. The…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
883 questions
asked 2023-03-26T16:35:16.08+00:00
Eigil Krogh Sorensen 41 Reputation points
edited the question 2023-03-26T16:37:56.1266667+00:00
Eigil Krogh Sorensen 41 Reputation points
1 answer One of the answers was accepted by the question author.

Remove Lines From Notepad and Write Data in New New Notepad With Group Key Repeated With Each Lines

Good Morning Great Minds ! I need Help to read Data From Notepad where a specific string(Group Key) repeated each page. I need To write Group key with each line of strings. in OriginalFile.txt i Removed unwanted Strings and Make a new file after remove…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
883 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,968 questions
asked 2023-03-24T06:43:10.2233333+00:00
Amit kumar Yadava 61 Reputation points
commented 2023-03-26T16:14:51.2533333+00:00
LesHay 6,751 Reputation points
1 answer

How to use NET MAUI releases with different NET versions

I am working on small tool using NET MAUI, but I am struggling to understand Microsoft's way of working on NET versions. While working on my tool, I have came up with certain bugs and reported them to Microsoft. Now they have fixed them. However I am…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,075 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.
7,562 questions
asked 2023-03-26T14:31:48.4366667+00:00
mrw 181 Reputation points
answered 2023-03-26T15:58:12.6533333+00:00
Bruce (SqlWork.com) 31,256 Reputation points
1 answer

I want to be able to reproduce the virtual touchpad of windows11 on .net

Currently, the virtual touchpad installed in windows 11 cannot be reproduced because the cursor cannot be intercepted. I would like to apply the technology, so please consider implementing it.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
883 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
4,090 questions
asked 2023-03-05T14:35:54.7+00:00
心 中川 0 Reputation points
commented 2023-03-26T15:30:22.6133333+00:00
心 中川 0 Reputation points
0 answers

This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug.

After uploading app bundle on google play it's showing this warning "This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,075 questions
asked 2023-03-26T13:55:50.31+00:00
Md Delower Hossain 0 Reputation points
1 answer

Net Maui CollectionView, Image Source

I have a CollectionView in .Net Maui, and this collectionview has items as Label and Image, ImageSource i am getting from URL, also I have bottom tabs, and when I am switching tabs and come back to parent tab, all images are lost in collectionview

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,075 questions
asked 2023-03-26T13:22:06.6733333+00:00
answered 2023-03-26T13:51:30.09+00:00
Sedat SALMAN 335 Reputation points
3 answers One of the answers was accepted by the question author.

How to fix Incomprehensible error in the whole of my application?

Hi, some time ago I made a blazor wasm .net core 6 application with VS version 17.2.3 and it works fine. However I opened the code today and I find myself with "red" everywhere, see the image below. Is this a problem with the VS version?…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,788 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.
882 questions
asked 2023-03-23T13:03:19.51+00:00
sblb 871 Reputation points
accepted 2023-03-26T11:46:21.52+00:00
sblb 871 Reputation points
0 answers

How to insert data to table on SQL server using jQuery on blazor server side?

I work on blazor server side .I face issue I can't apply jQuery to insert data to SQL server database table owner . after apply script and check table SQL server no rows inserted so my issue jQuery not insert data my code as below : 1 - I create JS file…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,827 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.
882 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.
7,562 questions
asked 2023-03-26T01:53:41.0833333+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
edited a comment 2023-03-26T11:28:11.9633333+00:00
AgaveJoe 19,681 Reputation points
4 answers One of the answers was accepted by the question author.

ASP.NET Core MVC with Identity - ArgumentNullException: Value cannot be null. (Parameter 'value') on signInManager.PasswordSignInAsync

What's up everyone, I've been having this issue when implementing Identity authentication to my app. This is the error I get: ArgumentNullException: Value cannot be null. (Parameter 'value') System.ArgumentNullException.Throw(string…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
883 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,827 questions
asked 2023-03-17T13:35:56.4266667+00:00
Alexander J 20 Reputation points
accepted 2023-03-26T10:23:45.8+00:00
Alexander J 20 Reputation points
0 answers

how to Clear Cookies not working on WebAuthenticator when Sign out

I am using Open ID Connect for sign in/out. i follow this link https://community.abp.io/posts/integrating-maui-client-via-using-openid-connect-aqjjwsdf After successful sign in, i sign out, then sign in again WebAuthenticator automatically logs me in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,075 questions
asked 2023-02-23T08:26:27.1033333+00:00
Nam Pham 41 Reputation points
commented 2023-03-26T06:38:49+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,361 Reputation points Microsoft Vendor
0 answers

Blazor MAUI blank screen on iOS

I have a Blazor Hybrid MAUI App that works great on Android. However, when I compile my code (both from VS and from dotnet publish in Azure Pipeline) to iOS the app just shows my splash screen and then shows a blank white screen (both on Simulator and on…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
882 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.
7,562 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
883 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,075 questions
asked 2023-03-11T21:32:28.0133333+00:00
The Blazor Engineer 0 Reputation points
commented 2023-03-26T01:45:38.1766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,361 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to localizae 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 get it to work with iOS. What have been done: In info.plist make sure there is this code …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,075 questions
asked 2023-03-16T12:23:51.11+00:00
Muhab Abdulraheem 21 Reputation points
commented 2023-03-26T01:16:49.2666667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,361 Reputation points Microsoft Vendor
1 answer

Identity/Authentication between ASP.Net MVC and Xamarin.Forms

Hi All, Just wondering if anyone has information on the best way to integrate Identity/Authentication ASP.NET MVC and Xamarin. I've created a standard ASP.NET Core application using the latest framework with Individual Accounts, I would like to…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,921 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,827 questions
asked 2021-05-07T00:52:46.133+00:00
Adrian N 81 Reputation points
answered 2023-03-26T00:05:18.5633333+00:00
Ayomide Oluwaga 331 Reputation points
1 answer

Xamarin.forms : I have used the camera to capture images then i need to combine them in a single picture. The user firstly determine how many images is going to be captured (number of rows).how i can do this?

i have code for capturing

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,921 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,788 questions
asked 2023-03-25T12:03:27.2466667+00:00
RAZAN EMAD ADDIN ALQATANANI 0 Reputation points
answered 2023-03-25T23:50:56.2433333+00:00
Ayomide Oluwaga 331 Reputation points
2 answers

Xamarin forms invoking javascript from webview

The android project in the sample as described in this article does not work. The iOS project works exactly as described in the article. The Android does nothing.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,921 questions
asked 2023-03-21T21:45:34.7833333+00:00
tbelvin 1 Reputation point
commented 2023-03-25T22:29:30.69+00:00
Chisa Kogano 5 Reputation points
3 answers

Blazor Server- AD B2C - Public, User and Admin sections with simple .net core identity authentication / authorization technique

Update - I now believe combining @Michael Washington Azure AD Groups solution with my custom AuthorizationHandler solution is the best of both worlds. I don't have an example of it, but if you are going down this path, look in to it. Edited…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
882 questions
Azure Active Directory External Identities
asked 2021-12-06T04:25:38.993+00:00
Chad Bennett 1 Reputation point
commented 2023-03-25T20:07:52.72+00:00
Home Store 4U 0 Reputation points
1 answer

Maui android layout content to fite in screen size

Hello all. How I can ensure that my layout content fit in any device screen. I test my app in my phone and it's ok but how I can be sure that it will fit in any other android device. I know I can use scrollview. but I want to know if it possible to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,075 questions
asked 2023-03-25T19:11:24.9633333+00:00
Haviv Elbsz 666 Reputation points
answered 2023-03-25T19:20:28.8066667+00:00
Erkan Sahin 370 Reputation points