Microsoft Q&A

.NET

14,005 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,005 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
answered 2023-03-26T15:22:40.49+00:00
AgaveJoe 19,681 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
commented 2023-03-26T15:00:22.57+00:00
Ptownbro 20 Reputation points
0 answers

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
0 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 851 Reputation points
commented 2023-03-26T14:25:22.9966667+00:00
AgaveJoe 19,681 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?…

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
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-23T13:03:19.51+00:00
sblb 851 Reputation points
accepted 2023-03-26T11:46:21.52+00:00
sblb 851 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…

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
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 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
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
.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-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 166 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 166 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
1 answer

Visual studio 2022 Installation error

Can someone help me? I am getting this warning when I try to install .NET development for visual studio 2022 : Couldn't install Microsoft.VisualStudio.Community.Shared.Msi

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
.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.
980 questions
asked 2022-11-19T19:35:11.68+00:00
lambarini 1 Reputation point
commented 2023-03-25T19:02:21.8066667+00:00
Donald Whisenhunt 0 Reputation points
1 answer

error when try to get values from object parameter 'object' does not contain a definition for 'employeeID'

I working on blazor web application server side by csharp . I face issue i can't get values of properties employee id and department code from object parameter to insert value on table I get compile time error when try to get value for property employee…

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
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
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-25T06:27:34.5266667+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
answered 2023-03-25T18:22:18.9933333+00:00
AgaveJoe 19,681 Reputation points
2 answers

Printing a div card with exact styles as it appears on the web page

On my web form, I have these div card where there are labels with values, and two image controls. The labels on the card can have their font-family and color changed by the user o the client side to the desire of the user, using controls provided to do…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,324 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.
464 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
asked 2023-03-25T13:15:41.9733333+00:00
Donald Symmons 1,246 Reputation points
answered 2023-03-25T17:06:35.6+00:00
Bruce (SqlWork.com) 31,256 Reputation points