Content
We have System.Configuration.ConfigurationManager 5.0.0 nuget package and Microsoft.Data.SqlClient 4.1.0 nuget package configured in an azure function to establish the connection with database. For that we are trying to run await sqlConnection.OpenAsync(
We have System.Configuration.ConfigurationManager 5.0.0 nuget package and Microsoft.Data.SqlClient 4.1.0 nuget package configured in an azure function to establish the connection with database. For that we are trying to run await…
MAUI -Crud operations in XML
Hi, I'm using Maui app , I need to create/add/delete operations in XML. The node is Job id(idenatifier) , vault..... How I create the xml. How I add new node to xml. How I delete node from XML using Job id(idenatifier). Thanks,
Is it safe to create tokens in PageModel extensible classes and send codes to email? Are such classes processed on the server or in the client in browser?
Hi! I have a class that extends Microsoft.AspNetCore.Mvc.RazorPages.PageModule and has an extension .cshtml.cs and there are quite dangerous events happening there - the creation of tokens, the formation of verification codes, sending an email to the…
Azure Functions App | Certificate Based API Calls
Hi I have a Azure Function App. I have a target system api call to be made from the function app. It needs to be a mTLS api call. Please guide me how to send a certificate in api call from function apps ? Where to store the certificate and how to…
How to fix redirection with the use of sweetalert2 javascript in .NET MVC Identity?
After the user has logged in? The error message displays: No webpage was found for the web address: https://localhost:44338/Identity/Account/Index I tried this code in the OnPostAsync in login.cshtml.cs and also to my login.cshtml …
Visual studio 2022 Installation error
Can someone help me? I am getting this warning when I try to install .NET development for visual studio 2022 : Couldn't install Microsoft.VisualStudio.Community.Shared.Msi
After migrating from IWebHostBuilder to IHostBuilder, the ASP.NET Core API is unable to access the 'applicationUrl' configuration from 'launchSettings.json'.
Hello, I recently transitioned my ASP.NET Core API from utilizing IWebHostBuilder to IHostBuilder as part of an upgrade to align with modern .NET practices. Post-migration, I'm facing a challenge: the API fails to launch correctly in both development…
Custom Line Control that can be Moved
I hope someone can help with my latest little project. My aim is to create a line CustomControl that has a Thumb at each end. My reason for utilising a Thumb is that I believe this would be the better solution to enable amendments to the line length and…
code snippet for BindableProperty
I am creating a BindableProperty snippet, so far, I have this. CodeSnippet Format="1.0.0"> <Header> <Title>BindableProperty</Title> <Shortcut>bp</Shortcut> <Description>This will create a…
Load a file using FileUpload control inside modal popup when using ModalPopupExtender
No file is present when uploading ? <div class="Modalform" style="display:none;" id="mySidebar"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" …
How do I insert a value from the Localizer into an Error Message?
Hi! My question is simple, but a implementation should probably be so complicated - it is easier to me to fly to the moon and return. ) How do I insert a value from the Localizer into an Error Message? I have a Localizer in the class: IStringLocalizer…
Signing WPF application for distribution
PLEASE Ignore this question and refer to my previous question https://learn.microsoft.com/en-us/answers/questions/1460328/signing-wpf-application-for-distribution =================================================== I have developed a WPF application that…
MAUI WebView access geolocation
On my .NET MAUI project (Android) I'm using a WebView to access a webpage, which does ask for location permission. I've already added native location permission to my app, which does ask when I start it. But when the webpage tries to access the location,…
Splash Screen icon is not visible on first launch for Android12 in .Net MAUI Android application
Create a Sample .Net MAUI application Build and Deploy android Project On first launch, the .Net icon is not visible, only purple screen appears This same behavior is happening in our Android Project as well Attaching the image of Sample application…
How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."
Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…
EF Reverse Engineering can't handle " #" in column name.
I have a database that uses two different fields: string "Asset int "Asset #" After running EF Reverse Engineering on the existing database, it creates a model with: [Column("Asset")] public string Asset {…
How to implement multi-level row grouping in .Net Core MVC?
I need to build a data grid with multi-level row grouping in .NET Core MVC for my current project, but I couldn't find any free resources online for this requirement. See the attached screenshot for reference. Can someone recommend any free resources or…
Copy files/folder in two steps
Hi, I have maui app that user select files and/or folder from source drive I want to copy the selections into destination in two steps. 1.Step 1 :Move first to temp folder 2.Step 2 : from temp folder to destination. How is can be done ? Thanks,
run winforms as webform on browser using vb net
Hi there Microsoft Developers and Community i would like to ask for this future if Microsoft wants to add on the new Generations of net could you guys create a ( webframeworks ) to run windforms on browser and mobile code the program similar…
how to get checkbox value in bool to model in . net core. IsEnable value as array in serialize
public class AreaModel { public int AreaId { get; set; } public bool IsEnable { get; set; } = true; } <form asp-area="MasterData" asp-controller="Home" asp-action="CreateUpdateArea"…