How to fill a ListView?
Dear all, I'm a beginner in C#. Could anyone tell me how to fill a ListView?
how to upload a picture to a picture1 box in html
CODE BEHIND CSHTML FILE @model IMS_Project.Models.Product @{ ViewBag.Title = "Product"; ViewBag.SubTitle = "Create"; } @using (Html.BeginForm("Create", "Product",…
Select Delete commands
Hello, I've been given this samples for insert into and update: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) …
Data Models
I have two Models, CustomerModel and CustomerInfo neither one relates to the other except that the Model(s) have fields in the same table and I wanted to separate the fields in the Models because they are used in different views of my .Net Maui…
AuthorizationPermissionMismatch error when accessing blob file with indirect permission in RBAC
Hi, I'm using BlobContainerClient for accessing blobs from code (C#) private async Task<BlobClient> GetBlobClientAsync(string blobName, string container, CancellationToken cancellationToken) { var containerClient = await…
UPDATE fields
Hello, This works when using insert into: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) command.ExecuteNonQuery() …
How to use openxml and c# to generate 100% stacked bar graph code using powerpoint where bar data can be modified.
using .net 6 and openxml to generate powerpoint , how to generate the bar graph code in powerpoint and modify code according to requirement of data
How to view/show image from file server path on button click
i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…
Does Maui-Android have an issue with Shadow property for the Border control?
When I define Shadow for the Border control (see XAML code below), Android fails to display. It works fine on WinUI. If I remove Shadow definition in XAML it works for Android. Does Android have an issue with Shadow? <Border Stroke="Blue"…
How to open the new Outlook to send en email with attachments?
Hello, I would like to know how to open the new Outlook mail to send an email with attachments in c#. I tried generating an .eml file and open it in the new outlook but the new Outlook does not support the X-Unsent: 1 flag. So the email does open, but…
internal error in the .NET Runtime at IP 70DE92C3
Application terminates when loading report viewer, event viewer shows an error: "internal error in the .NET Runtime at IP 70DE92C3"
How to target .NET Framework 4.0 in VS 2022 on Windows 11?
Working on some old projects targeting .NET Framework 4.0. I used VS 2022 to open the solution and was told to install 4.0 targeting pack. I can't find the download link on the dotnet website, nor the installation option in Visual Studio Installer. …
After updating Clickonce today, it won't run.
We distribute our product using ClickOnce, based on .NET Framework 4.0. I conducted an update for my product today, but many users encountered issues where it wouldn't launch after the update. After trying various methods, I found that following the…
ORA-00933: SQL command not properly ended,
Hello,I am facing a non usual exception with no scenario having been caught regarding this exception. I have an platform enterprise application consisting of many modules , some of those modules are dealing with the DB via the LINQ to entity technique…
ASP.NET button control not able to make disabling in panel control using c#
i am trying to make disable button controls through panels. In the panel, i am using textbox, label, fileupload,gridview and button controls. i am able to disable only textbox, label and gridview. but, i am unable to make disable fileupload and button…
How to prevent the web page to read or write cookies in WebView2
I'm trying to write to program with webview2, the control document is here: https://learn.microsoft.com/en-us/microsoft-edge/webview2/ The WebView2.CoreWebView2.CookieManager provides lots of methods to read/write cookies, but this is not what I want. I…
How to setup Excel Interop for Exccel 365
I've been attempting to setup a project that allows me to use Excel Interop in C# on the Office 365 version (I need to create and edit some sheets to automate some tasks from work involving CSV files). However almost every attempt has resulted in the…
Calendar booking using datagridview
Good day everyone, I make a calendar booking using datagridview. Please take a look the image below. as you can see they have Book start and Book end. Now I want to put a color from date start to date end. Please take a look the image below. I don't…
How to add to "GraphicsView" class with “DrawableProperty" in dotnet maui
Hello! I trying drawing of the circle in center which is touched in the "GraphicsView" control. And I thought the one of the important points is how to add "GraphicsView" class with "DrawableProperty" in dotnet Maui. Please…
Add Items to List Randomly
I am fetching 50 questions from Api https://supaquizapi.azurewebsites.net/api/Questions Loading into list and deleting 40 questions randomly. Now I just to add 10 questions randomly to Questions List<InQuestion> res = await GetApiData(); …