Content
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…


Downloading Core 7 for a x64 bit windows 11 operating system
I've been working with .net core 6. I tend to want to stay with it because I am used to it, but I'm considering upgrading to .core 7, since it is available. Would it be advisable to upgrade to 7 for new projects? The download page seems…


System.drawing.common support for linux
our app has a graphics/image generator dll that uses drawing classes, but System.drawing.common is not supported on other platforms, we can switch to use aspose.drawing, which is supported on windows and linux. the problem we face is windows forms app…


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.


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?…


Convert.ToDouble(String) does not throw an overflow exception when max_value is exceeded
I use .NET 8.0 on vscode. In documentation (for .NET 8.0) of Convert.ToDouble(String) there is OverFlow Exception when Double.MaxValue is exceeded, but when I convert a string that represents a value>Double.MaxValue, it doesn't throw an exception, but…


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 *…
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…


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…


Running or Downloading Contoso University from GitHub
I am trying to download a completed copy of the Contoso University Demo from GitHub. cu_final is probably the copy I want. I open cu_final and I see the familiar .net file structure for a project. I am encouraged. When I hit the <> Code button…


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…
Poptrox-popup + Net.Core 6. How do I create my own itemlist under the picture (div or iframe)?
Hi! I use a free Parallelism template (you can download and see the code) for the site: https://html5up.net/parallelism Poptrox: https://www.jqueryscript.net/demo/Highly-Configurable-Responsive-Content-Lightbox-Plugin-For-jQuery-poptrox/ …
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…


in C# before the Nullable(?) was invented,Which can be null?which can't be null?
in C# before the Nullable(?) was invented,Which can be null?which can't be null? and Why are we need to worried about null or not null?
.NET 6.0 migration issues leads to MySQL stored procedure calling
Once we migrate .NET core 3.1 applications to .NET 6.0, we get below issue while calling MySQL stored procedure, The LINQ expression could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation…


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…
Access Control
Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…


Attribute 'Table' is not valid on this declaration type. It is valid on 'type' declarations only.
I'm doing the Output Binding in Azure Functions .NET 6. Whatever the input data I'm receiving, that passing to the table in the table storage but two errors I'm getting. Getting Table Attribute Error in…


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…


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…

