Microsoft Q&A

.NET

13,974 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,974 questions with .NET-related tags

Sort by: Updated
2 answers

making an image box in Razor page

I want to make an image box on my razor page so that users can type or sign their name in that box. I want something like adobe acrobat offers. below is the screen shot: How can I achieve this.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
asked 2023-03-23T04:44:53.9833333+00:00
Anjali Agarwal 616 Reputation points
answered 2023-03-24T10:57:33.91+00:00
Ali Benchaaban 0 Reputation points
0 answers

ms-word command is decode the WebDAV URL before sending to server

We implemented our own WebDAV server as C# HTTP handler running on IIS. We are using below URL to open the document in Word via WebDAV server. ms-word:ofe%7Cu%7Chttp%3A%2F%2FMyWebDavServer%2Fwebdavproxy%2FTest%2FSampleTestDocument.docx We explicitly…

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,532 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,320 questions
Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
219 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
730 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
168 questions
asked 2023-03-24T10:54:01.6166667+00:00
Rajesh Soman Pillai 0 Reputation points
0 answers

Blazor Web assembly application is not running in iOS and macOS ?

I have Blazor Web assembly application with azure active directory login and it works on my local machine, local IIS but when I published it on server. and try to login in iOS it redirects me to login-failed URL every time. and azure ad popup not shown.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 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.
878 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
873 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,525 questions
asked 2023-03-15T14:31:55.2666667+00:00
Kuldeep Y 11 Reputation points
commented 2023-03-24T10:51:06.8266667+00:00
Sandeep G-MSFT 5,016 Reputation points Microsoft Employee
0 answers

How can I send a raw message in .net maui for android, no compiling sample found

Hello, I would like to find a sample project in .net MAUI for android to send a raw message via USB, no compiling sample found. I found this project which work well on pAX IM30 Android 7.1 : https://github.com/kai-morich/SimpleUsbTerminal I would like…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,065 questions
asked 2023-03-24T10:40:28.3333333+00:00
Julien Duprat 0 Reputation points
0 answers

How to fix exception "Failed to initialize CoreCLR, HRESULT: 0x80004005"

Hi! I have OS Linux 4.18.0-348.12.2.el8_5.x86_64 x86_64, rocky I published my project with target platform linux-x64, file [PROJECT_NAME].deps.json begins with: "runtimeTarget": { "name":…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,320 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 2023-03-24T10:28:25.2333333+00:00
Alexander Pinchuk 0 Reputation points
edited the question 2023-03-24T10:30:03.23+00:00
Alexander Pinchuk 0 Reputation points
1 answer

Insert Data into Parent and child table using MVC

Below is sql table structure Create table #ItemMasterFile (Codeitem int,Descriptionitem varchar(50)) Create table #Probale (Prdno int,Codeitem int,QTY int,PID int,Orderno int) Create table #tbl_BalPacM (PID int,Orderno int,Date date) Create table…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
730 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,532 questions
asked 2023-03-24T06:09:58.2666667+00:00
akhter hussain 2,881 Reputation points
edited a comment 2023-03-24T10:14:25.38+00:00
akhter hussain 2,881 Reputation points
0 answers

Unit testing for async method with boolean return type

Hi, Im deveolping a set of unit test for my project, using xunit. In my code I have an handler that receive messages from kafka. This handler deserialize message to an entity and write it on sql database and returning true or false if some rows are…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying a test as a means of analysis or diagnosis.
269 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
873 questions
asked 2023-03-24T09:49:12.27+00:00
first100 81 Reputation points
edited the question 2023-03-24T10:05:15.2233333+00:00
first100 81 Reputation points
1 answer One of the answers was accepted by the question author.

Samples for Xamarin.iOS projects should be upgraded to .NET SDK-style projects in Xamarin Support Policy

I developed a cross-platform applications with Xamarin.iOS.framework and Xamarin.Mac.framework and Mono.framework. I found some anxious information in https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin. I want to know what's the quickest…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,065 questions
asked 2023-03-20T02:48:22.8133333+00:00
Sun, Tracy (LNG-SHA) 0 Reputation points
commented 2023-03-24T09:45:00.0933333+00:00
Sun, Tracy (LNG-SHA) 0 Reputation points
2 answers One of the answers was accepted by the question author.

VS Code displayed on webpage as text rather than picture

If I want to display code...as it appears as code in Visual Studio (e.g. below) but on a web page as text, is there any way of doing that? If I place the code between <p> </p> tags, I get: Element 'html' cannot be nested inside element…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
730 questions
asked 2023-03-23T15:29:54.3766667+00:00
Dean Everhart 806 Reputation points
accepted 2023-03-24T09:32:01.28+00:00
Dean Everhart 806 Reputation points
0 answers

How to monitor and record the switch out of a thread?

Hello everyone~ I am working with a process which simulate the running of a robot and draw it in C# .NetFramework 4.7.2 on Windows 10. I have a dedicated thread to compute the state of robot and assign it with the highest priority. The computation takes…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
873 questions
asked 2023-03-24T06:09:41+00:00
Kira Yamato 1 Reputation point
commented 2023-03-24T09:05:42.46+00:00
Jack J Jun 21,976 Reputation points Microsoft Vendor
1 answer

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…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,965 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
873 questions
asked 2023-03-24T06:43:10.2233333+00:00
Amit kumar Yadava 41 Reputation points
answered 2023-03-24T09:03:26.67+00:00
Jiachen Li-MSFT 11,556 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

VB 2015 : How To prevent Column Ordering between Frozen Columns in DataGridView ?

Hi, I have a DataGridView Control with a bunch of Columns and Rows. My task is to have the first 3 Columns Frozen and Fixed in order. User can't change order on Columns from Column01 to Column03. User can change order only on Columns from Column04…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,965 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2023-03-23T13:49:18.42+00:00
Marco Gregori 21 Reputation points
accepted 2023-03-24T08:14:31.7633333+00:00
Marco Gregori 21 Reputation points
1 answer

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.
878 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,765 questions
asked 2023-03-23T13:03:19.51+00:00
sblb 851 Reputation points
commented 2023-03-24T07:48:04.86+00:00
AnnaXiu-MSFT 12,931 Reputation points
2 answers

How To Decrypt Encrypted json object to its origial state

I can Able to Encrypted the json object but when i try to decrypt the encrypted data to json it is showing different response pls help me When i try to debug im getting different symbols idk how to do it pls help me This is my encryption code…

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,532 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,320 questions
asked 2023-03-16T14:52:50.62+00:00
jaya prakash 0 Reputation points
answered 2023-03-24T07:28:35.9733333+00:00
QiYou-MSFT 1,406 Reputation points Microsoft Vendor
1 answer

Problem capturing value from cell in gridview using GridView1_RowUpdating in ASP.net(VB). Getting error below.

Line 73: Line 74: 'Compute Final Price Line 75: Dim ItemPrice As String = TryCast(GridView1.Rows(e.RowIndex).FindControl("Price"), TextBox).Text.ToString Line 76: hfFinalPrice.Value = hfItemQuanGrid.Value *…

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.
459 questions
asked 2023-03-23T15:20:01.93+00:00
DEK 0 Reputation points
edited a comment 2023-03-24T07:13:57.24+00:00
Lan Huang-MSFT 11,656 Reputation points Microsoft Vendor
1 answer

Http chunk encoding miss end of chunked encoding("0\r\n") or tailer("\r\n") on IIS 7.5

I create a simple ASP .NET Application and write a generic web handler (HelloFilterWithClose.ashx). HelloFilterWithClose.ashx ProcessRequest with setting a HttpResponse.Filter(MyFilter), and it response to http client with write a PDF file to http…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,320 questions
Internet Information Services
asked 2023-03-22T09:35:26.2833333+00:00
linq.x 1 Reputation point
edited a comment 2023-03-24T06:48:33.3266667+00:00
Viorel 88,406 Reputation points
1 answer

system.data.linq in .net core

I created a asp.net core + react project in visual studio 2022. The new project references some other projects that use system.data.linq, but in .net core I can't access the assemblies. I tried adding this assembly by browsing it, but then I got…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 questions
asked 2022-04-27T18:33:37.757+00:00
12345 1 Reputation point
commented 2023-03-24T06:39:44.37+00:00
Yahya Patel 0 Reputation points
1 answer One of the answers was accepted by the question author.

Can the CommunityToolkit.Maui.MediaElement be used in Code-behind?

I can use the CommunityToolkit.Maui.MediaElement to play an audio file in XAML. I understand this control can also play video but my need is just to provide an audio prompt from within a code behind. I tried the following which compiles okay, but nothing…

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,532 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,065 questions
asked 2023-03-23T15:15:37.37+00:00
dg2k 806 Reputation points
accepted 2023-03-24T06:25:30.0666667+00:00
dg2k 806 Reputation points
2 answers

No generic method 'Contains' on type 'System.Linq.Enumerable'

Hi, In my Blazor Server application, I am trying to filter a data grid. I am using the Radzen library. I want to add the Blazorise library (DatePicker) in order to select multiple dates. The problem is, DatePicker needs IReadOnlyList but on the other…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 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,532 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.
878 questions
asked 2023-03-21T13:22:40.4266667+00:00
Cenk 766 Reputation points
answered 2023-03-24T06:14:11.85+00:00
Cenk 766 Reputation points
0 answers

Problem with changing SSAS Tabular model by TOM

Hi! I try develop SSAS Tabular model by TOM API and C# language. Unfortunately, I have some problem with change model. We have ready model in project, that was developed with using VS 2019 UI interface. I haven't problem with get information about model…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,819 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,532 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,055 questions
asked 2023-03-22T19:51:33.07+00:00
User_Serachev 0 Reputation points
edited the question 2023-03-24T06:06:43.56+00:00
Ruikai Feng - MSFT 326 Reputation points Microsoft Vendor