Microsoft Q&A

.NET

14,071 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,071 questions with .NET-related tags

Sort by: Updated
0 answers

How do I dynamically replace value in razor syntax based on selectedIndex in dropdown

I have an CSHTML View that has a dropdownlist. In the OnChange event I'm calling reportchange(this) which calls my function reportchange. How can I dynamically use the selectedIndex, this code doesn't work because the Razor code errors out with the…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
741 questions
asked 2023-03-29T13:33:39.8466667+00:00
Bill Mickey 0 Reputation points
1 answer

Visual Studio Code C# MVC Application - How to view Marked up HTML Code as if hard coded in an HTML Page...

Attempting to do code behind in a Visual Studio Code Application when I have done my own HTML Markup code in a routine in the C# code: . . . @ViewData["abc"] = "<br/>Message<br/Message2<br/>Message3"; …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
741 questions
asked 2023-03-28T23:21:40.2433333+00:00
BillNew 26 Reputation points
answered 2023-03-29T13:32:58.5+00:00
BillNew 26 Reputation points
0 answers

How can I figure out what nuget package is throwing an error about Xamarin.Android.Support.v4 no longer supported?

I have an old Xamarin.Forms app for iOS and Android that I am trying to upgrade to work on the latest Android OS. When I build I get these errors: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,929 questions
asked 2023-03-27T21:22:32.47+00:00
Tony Pitman 21 Reputation points
commented 2023-03-29T13:20:04.99+00:00
Tony Pitman 21 Reputation points
0 answers

Entry field control is covered by keyboard

Hello, I have a view with 4 Entry controls, when I try to type inside the control, the keyboard will cover the Entry field. is there any way to shift up the control to be above the keyboard?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,094 questions
asked 2023-03-29T13:11:02.2266667+00:00
ahmed omar 101 Reputation points
0 answers

Restore punctuation to unstructured text using C#

Hi, I am looking to restore or add punctuation properly in unstructured text using C# or ML.Net. I found option available in python called "rpunct". But I want to implement it in .net core Web API project. The "rpunct" is working as…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
896 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,595 questions
asked 2023-03-07T07:56:26.4833333+00:00
Thamotharan 21 Reputation points
commented 2023-03-29T13:10:04.77+00:00
Thamotharan 21 Reputation points
2 answers One of the answers was accepted by the question author.

How to use a auto ml pickle file from azure studio in a c# .NET api?

Hello to all, I am currently working on a Machine Learning project, I have launched the auto ML of Microsoft Azure Studio on my data and I have downloaded the best model in a folder with the appropriate Pickle file. However I would like to use this…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
896 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
237 questions
asked 2023-03-29T08:53:34.17+00:00
AMROUN Lysa 61 Reputation points
answered 2023-03-29T13:08:00.18+00:00
AMROUN Lysa 61 Reputation points
1 answer

How to restrict scrolling and panning with single finger and enable with two fingers in UWP ScrollViewer using touch screen?

Hi, In an UWP application, I am having a ScrollViewer in the XAML which contains a StackPanel as Content. In that StackPanel there are some images. XAML: <Grid> <ScrollViewer x:Name="scrollView"…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,929 questions
Universal Windows Platform (UWP)
asked 2023-03-27T06:02:13.86+00:00
Imman Kumar 6 Reputation points
commented 2023-03-29T13:01:08.3866667+00:00
Imman Kumar 6 Reputation points
0 answers

Error Package Microsoft.Owin 4.2.2 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0)

Hello, I have a problem adding packages via Nuget Manager in my Xamarin project. I am working on a MacBook with Visual Studio 2022. Among other things, I want to add the packages Microsoft.OWIN and OWIN.Security.Keycloak to my project for iOS. Both on a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,929 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
39 questions
asked 2023-03-29T12:57:16.34+00:00
MB-1826 0 Reputation points
0 answers

html css mobile

<section class="kaydirma"> <div class="swiper mySwiper container"> <div class="swiper-wrapper content"> <div class="swiper-slide card"> …

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,595 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,327 questions
asked 2023-03-29T12:55:00.27+00:00
kadir koçaslan 40 Reputation points
2 answers

How to add example value to 200 OK response in ASP.NET Core 6 Web API?

Hi, I have an ASP.NET Core 6 Web API, I am using Swagger UI. Is it possible to add an example value to 200 like the one in the 400? I want to add an example like this; { "referenceId": "732aa76f-6c9c-4598-adaf-775aef8a0f3d", …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,845 questions
asked 2023-03-29T07:33:31.9466667+00:00
Cenk 766 Reputation points
edited an answer 2023-03-29T12:41:49.4733333+00:00
AgaveJoe 20,151 Reputation points
0 answers

ReliableSession not working with nethttpBinding when we have duplexchannel communication

I am getting problem with netHttpBinding. Its not working when ReliableSession enabled in nethttpBinding and when we have duplexchannel communication. Below is the exception we are getting. System.ServiceModel.ProtocolException: The remote endpoint…

Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
275 questions
asked 2023-03-29T12:39:25.5866667+00:00
Rishabh Wadhawan 0 Reputation points
0 answers

InstancePersistenceCommand Exception - Windows Workflow Foundation Issue

I am getting this exception when running the workflow, in my application logs- The execution of an InstancePersistenceCommand was interrupted because the instance key {GUID} was not associated to an instance. This can occur because the instance or key…

Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
275 questions
asked 2023-03-29T12:22:34.9333333+00:00
Moulshree Guleria 0 Reputation points
2 answers

converting a text to an image

I am trying to convert a text to an image. When I see the converted image, the font family is changed. This is my code that works fine on my localhost, but when I deploy the code to the server. The font family family that I specified in the image…

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,595 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,845 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
741 questions
asked 2023-03-29T02:31:41.36+00:00
Anjali Agarwal 656 Reputation points
edited a comment 2023-03-29T12:15:25.4933333+00:00
Arun Siripuram 816 Reputation points
0 answers

Forecasitng in .net web applications

Hello , I'm asking is it possible to work on the aspect of forecasting in .net web application ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
896 questions
asked 2023-03-29T12:01:13.6666667+00:00
BEN YAHIA Amira 0 Reputation points
0 answers

ASP.NET Design Template with Bootstrap

I am developing many web application using ASP.NET. For that, i used Ajax,CSS,HTML,etc. We were not used in depth Bootstrap and other technologies with ASP.NET. I have the requirement and want to develop .NET Web application with Rich and user friendly…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,845 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,327 questions
asked 2023-03-29T06:04:25.7566667+00:00
Gani_tpt 1,261 Reputation points
edited the question 2023-03-29T11:55:22.95+00:00
Gani_tpt 1,261 Reputation points
0 answers

how to replace replace IObjectContextAdapter with IInfrastructure<IServiceProvider> using entity framework core 6

Hi Team, since IObjectContextAdapter is not supported by entity framework core 6 please suggest the replacement code which supports the below code - using (var db = new BloggingContext()) { var blogs =…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
479 questions
asked 2023-03-29T11:47:17.0866667+00:00
Firke, Yogesh (Cognizant) 0 Reputation points
1 answer

Problem with emulator(s)?

I have the following XAML in a MAUI app. <CollectionView Grid.Row="2" ItemsSource="{Binding selectedAward.winnersList}" > <CollectionView.ItemTemplate> <DataTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,094 questions
asked 2023-03-28T16:13:36.6366667+00:00
Lloyd Sheen 936 Reputation points
commented 2023-03-29T11:21:35.26+00:00
Lloyd Sheen 936 Reputation points
0 answers

How can word file displayed in a div container be printed in a pdf format?

I am trying to have a single page that will can be used to display either a word (.doc/.docx) or a PDF file. Instead of having two pages, each for word and pdf files. It’s a success but printing either of these formats in PDF is where I have…

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,595 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
896 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,327 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
asked 2023-03-28T10:44:36.1866667+00:00
Donald Symmons 1,266 Reputation points
commented 2023-03-29T11:13:19.52+00:00
Donald Symmons 1,266 Reputation points
0 answers

Why is my Android app icon not displayed correctly in the notification panel?

I have created png images in different sizes on Android. When a push notification pops up in the upper part of the display then the app icon is displayed correctly, but when I open the notification panel on my Samsung tablet then the app icon is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,094 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,595 questions
asked 2023-03-14T19:38:32.9233333+00:00
Kim Strasser 561 Reputation points
commented 2023-03-29T11:12:09.2833333+00:00
Kim Strasser 561 Reputation points
2 answers One of the answers was accepted by the question author.

Java.Lang.NoClassDefFoundError com.google.android.exoplayer2.source.ConcatenatingMediaSource

I use Xamarin MediaManager version 1.2.2 to play songs in my Android and iOS applications: https://github.com/Baseflow/XamarinMediaManager But the problem is that it is not working in every Android project. For example, it works in a new empty Android…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,094 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,595 questions
asked 2023-03-06T09:51:29.5066667+00:00
Kim Strasser 561 Reputation points
commented 2023-03-29T11:05:33.0033333+00:00
Kim Strasser 561 Reputation points