Microsoft Q&A

.NET

13,987 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,987 questions with .NET-related tags

Sort by: Updated
1 answer

How do I add a data entry control inside of the ListView.

I am trying to add a data entry control called Entry Cell inside of a ListView so that the user can enter data that I can save to the Database. I get the error... A value of type 'EntryCell' cannot be added to a collection or dictionary of type…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,069 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,547 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
600 questions
asked 2023-03-24T19:30:03.5933333+00:00
Ronald Rex 571 Reputation points
commented 2023-03-24T21:57:45.7266667+00:00
Lloyd Sheen 931 Reputation points
1 answer One of the answers was accepted by the question author.

Perform (Create, Read, Update, and Delete) operations on a ListView in .Net Maui

Hi Friends. I have a ListView in a Content Page that I would like the user to be able to Perform (Create, Read, Update, and Delete) operations on in .Net Maui. Thanks in advance for for any help.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,069 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,547 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
600 questions
asked 2023-03-24T17:03:06.4733333+00:00
Ronald Rex 571 Reputation points
commented 2023-03-24T21:14:11.83+00:00
Ronald Rex 571 Reputation points
0 answers

Exapand glyphicon-plus glyphicon-plus when collapsed on button click

I have a page with bootstrap glyphicon-plus glyphicon-minus in a span with a class. when the page loads the span is collapsed by default and I need to Expand it on a button click programmatically. I am doing $("#btn-search").click(function…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
511 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
733 questions
asked 2023-03-24T19:53:12.94+00:00
Benjoe 386 Reputation points
edited the question 2023-03-24T20:00:18.2166667+00:00
Benjoe 386 Reputation points
0 answers

Can you please tell me how to animate the CommunityToolkit.Maui's Expander control for opening and closing it slowly?

I would like to show some hidden tips with a simple implementation of CommunityToolkit.Maui.Views.Expander control -- such as using a Label control as its content. It would be visually nice if the Expander opens and closes slowly, say with some Easing…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,069 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,547 questions
asked 2023-03-24T18:56:05.75+00:00
dg2k 806 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,920 questions
asked 2023-03-21T21:45:34.7833333+00:00
tbelvin 1 Reputation point
commented 2023-03-24T18:06:16.5433333+00:00
tbelvin 1 Reputation point
1 answer

ASP.NET Core MVC : complex data model reading related data

I am trying to display a drop-down on my DEVICES create.cshtml view of the names from CONTACT via the lookup table DeviceAssignments, below is an ERD. I am already able to display the drops downs for DeviceCategories and DeviceLocations, but I am not…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,824 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
733 questions
asked 2023-03-16T17:21:00.64+00:00
tjestesjr77 20 Reputation points
edited a comment 2023-03-24T18:05:49.4733333+00:00
AgaveJoe 19,606 Reputation points
1 answer

Opening hyperlink in browser

My first take with Andriod I'm looking to open a link in an email in browser, like the screenshot. Other apps are listed and I wish to bring include my app as well... Any reference link or how to do helpers will be very help thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,920 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,547 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
71 questions
asked 2023-03-24T16:30:58.7533333+00:00
SSinhg 266 Reputation points
answered 2023-03-24T18:01:32.7433333+00:00
Bruce (SqlWork.com) 31,326 Reputation points
1 answer

Turning off cascade deletes

I have a case where I need to turn off cascading deletes (two different models are both wanting to cascade delete and so one needs to be turned off). I think I have this right but I saw numerous different answers all over the place and so want to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:37:30.1933333+00:00
David Thielen 691 Reputation points
commented 2023-03-24T16:10:31.27+00:00
David Thielen 691 Reputation points
2 answers

the service microsoft.visualstudio.shell.interop.iselectioncontainer already exists in the service container in VS2022

I recently installed Visual Studio 2022 Professional edition on my machine windows 2010. I'm just trying to create a sample windows form project and trying to open the designer / form by double clicking on Form1.cs and I'm getting this weird error…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,824 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.
462 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,547 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
875 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2023-03-24T14:39:48.4166667+00:00
Sunny Sharma 1 Reputation point
answered 2023-03-24T15:40:26.8266667+00:00
Bruce (SqlWork.com) 31,326 Reputation points
7 answers

A connection was successfully established with the server, but then an error occurred during the login process Error from .Net core WebAPI

Hi, I've an application that uses WebAPI in .Net core 6 and uses Kestrel server. When calling HttpPost request, the code tries to inject data in DB but fails with error: The certificate chain was issued by an authority that is not trusted. Inner…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,824 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,087 questions
asked 2021-12-14T12:23:52.077+00:00
Amit Potdar 91 Reputation points
commented 2023-03-24T15:24:57.1466667+00:00
Blasco73 0 Reputation points
1 answer

Any sample .net websites with authentication & authorization?

I would like to create a web portal with the following features. Authentication & authorization Connect to sql database Pages are base on their roles where i can have the versatility to set A decent master page Create, Read, Update and delete…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
875 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.
462 questions
asked 2023-03-24T12:31:57.87+00:00
Joh 1 Reputation point
answered 2023-03-24T14:43:22.6733333+00:00
AgaveJoe 19,606 Reputation points
0 answers

After certificate update for signing ClickOnce application, ApplicationDeployment.CurrentDeployment.IsFirstRun is false

Since our certificate for signing our ClickOnce application expired recently, we rolled out a new one before deploying the next update of the application. The update worked fine, but our release notes weren't shown, as…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
875 questions
asked 2023-03-14T11:59:20.63+00:00
Christian Obkircher 1 Reputation point
commented 2023-03-24T14:43:06.9033333+00:00
Jack J Jun 21,976 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Exposing NET 7 classes as COM for Excel VBA (and vb6)

I have a .net 7 class library with GUID and ComVisible attributes defined. Also added EnableComHosting tag in csproj. After registering (regsvr32) the comhost.dll it is usable from e.g. Excel VBA, but only as late bound. Anyone able to guide me further…

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,547 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
875 questions
asked 2023-02-14T08:17:47.96+00:00
EuroEager2008 121 Reputation points
commented 2023-03-24T14:38:59.52+00:00
EuroEager2008 121 Reputation points
1 answer

Displaying Image within Project folder

Any idea why an image wouldn't display in core 6? Is there a problem with the line of code below...the way the path is transcribed? Is there a problem using png format in 6? <img src="/Media/Home.png" alt="Home Page"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,824 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
733 questions
asked 2023-03-24T13:48:07.83+00:00
Dean Everhart 846 Reputation points
edited an answer 2023-03-24T14:07:26.0633333+00:00
AgaveJoe 19,606 Reputation points
0 answers

layout_width="wrap_content" has no effect to button

Hello In platform xamarin android <Button android:id="@+id/size" android:tag="size" android:text="@string/buttonsize" android:fontFamily="calibri" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,920 questions
asked 2023-03-24T13:19:31.1166667+00:00
Shay Wilner 1,446 Reputation points
edited the question 2023-03-24T14:04:32.5666667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,206 Reputation points Microsoft Vendor
1 answer

Designating a link open a .cshtml (view) file in a text editor

Is there a way to have a .net webpage link and open a .cshtml (view) page in either in Visual Studio or other text editor? <a href="/Views/Home/Notes.cshtml">View in Text Editor</a> Yields

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,824 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,322 questions
asked 2023-03-24T12:26:11.8366667+00:00
Dean Everhart 846 Reputation points
answered 2023-03-24T13:58:57.8666667+00:00
AgaveJoe 19,606 Reputation points
4 answers

Web form issue

Hi, I get "undefined" unexpectedly to the column/field below, while there is the proper row value returned from the table. What is the reason? html += "<td >货币</td><td style='font-weight:…

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.
462 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
511 questions
asked 2023-01-20T07:49:30.2666667+00:00
Peter_1985 1,891 Reputation points
commented 2023-03-24T13:46:22.3233333+00:00
Peter_1985 1,891 Reputation points
0 answers

Net7 Maui Unable to load DLL 'Microsoft.ui.xaml.dll'

In Visual Studio, using Net7, when debugging project it runs fine. If I go to the directory and run the exe I get the following message in application log "Exception Info: System.DllNotFoundException: Unable to load DLL 'Microsoft.ui.xaml.dll' or…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,069 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
875 questions
asked 2023-03-24T12:51:21.5833333+00:00
Shermak, Carl (C.E.) 20 Reputation points
commented 2023-03-24T13:35:50.28+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,206 Reputation points Microsoft Vendor
1 answer

Displaying Razor code without executing it.

The code below, using the <pre></pre> tag using <> substitution displays the html code successfully on a view page (see below) BUT... it requires the Razor elements... @RenderBody() @await…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,824 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
733 questions
asked 2023-03-24T12:18:26.4966667+00:00
Dean Everhart 846 Reputation points
answered 2023-03-24T13:32:16.08+00:00
AgaveJoe 19,606 Reputation points
0 answers

Entity Framework, nullable, and no warnings or hacks

I am trying to get my model constructors written so that nullable works, with no warnings, and no having to assign default! - in other words, to do it all right. BTW, if I'm wrong on any of this, please let me know. I'm mostly there. What's left is…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:39:22.8866667+00:00
David Thielen 691 Reputation points
commented 2023-03-24T13:14:52.9866667+00:00
Jack J Jun 21,976 Reputation points Microsoft Vendor