373,668 questions
-3
votes
1
answer
51
views
How to make c# code save the folder name where the file was found? [closed]
When using Input="file" and selecting a file, how do you make the c# code saving the name of the folder where file was browsed to (or Chosen from)?
The ASP.NET page is using c# and the Input ...
-1
votes
0
answers
36
views
How to show long file name when using Input command? [closed]
When I select a file using "Choose File" and input="File", only 25 characters of the file name are shown.
How do I increase the length so that the entire file is shown?
4
votes
1
answer
53
views
iText PDF Persian text rendering issue — characters appear broken
I’m generating a PDF using iText (version 9.2.0) in C#.
The PDF contains Persian (Farsi) text, but the characters do not display correctly — they appear separated or broken.
here is my code :
public ...
-2
votes
0
answers
24
views
Can an Entra ID Server be added and used in ASP.NET Membership Providers? [closed]
I have a web app built to run on the .NET Framework which uses ASP.NET Membership Providers that have been configured via the web.config to validate users. Currently this is configured to use LDAP.
Is ...
0
votes
1
answer
40
views
No buttons (or other interactive elements) work when I use a data-bound object
I’m trying to display user identities and fetch a list of users, but buttons stop functioning if I use ApplicationUser (inherited from IdentityUser) retrieved via UserManager.
@attribute [Authorize]
@...
0
votes
1
answer
44
views
OracleException: ORA-01460: unimplemented or unreasonable conversion requested lightspeed .net c# [closed]
Getting this error when trying to save nclob via lightspeed orm, the problem in lightspeed is it doesn’t contain any db type clob or bclob, so by default it will be string type for my nclob column, ...
0
votes
1
answer
25
views
How to fix "Cookie Without SameSite Attribute" warning on .NET Framework application
I am trying to fix the Cookie Without SameSite Attribute warning on our .NET Framework 4.7.2 application running on an Azure App Service.
I found some useful information on this site https://learn....
-2
votes
0
answers
62
views
Concurrent dictionary needed? [closed]
I need to implement a .NET service, that is accessed by a controller, to either allow or deny access to a given userId. A user can only access if they have been granted access at most 5 X in the last ...
0
votes
0
answers
82
views
Unable to set up TypeScript in a .NET application that uses Bootstrap [closed]
I am trying to set up a .NET web application that uses TypeScript along with Bootstrap. I am receiving the following error when I do a build of my application:
(TS) Cannot find module '@popperjs/core'...
1
vote
1
answer
59
views
Get the method name for a route in an attribute, but without the specific text
I want to automatically get method names in the route without the async keyword. Can I do this in an attribute?
I need a route like this .../Read:
[HttpPost("Read")]
public async Task<...
0
votes
1
answer
167
views
+50
ASP.NET upgrade from .NET 4.0 to .NET 4.8
I'm upgrading a legacy ASP.NET application written in VB.NET and running on .NET 4.0 to .NET 4.8. I'm not familiar with the structure.
Note: I'm in an extremely controlled environment, and I'm not ...
1
vote
1
answer
66
views
Trying to get totals on a gridview
I have a gridview of items on a budget that shows three amounts: amount allocated, amount spent, and amount remaining. In my database, these values are of type numeric(7,2). My client would like to ...
2
votes
1
answer
76
views
Microsoft.AspNetCore.OpenApi does not generate type reference for identical lists in same class
I have a problem with the OpenApi generation of my C# classes. I will illustrate with an example:
// program.cs
using Microsoft.AspNetCore.Http.HttpResults;
var builder = WebApplication.CreateBuilder(...
0
votes
0
answers
27
views
How to return the geo distance when NOT sorting with _geo_distance in c# NEST code
I have json data with latitude and longitude in separate fields instead of having a location of type GeoPoint.
I implemented filtering in ElasticSearch based on geo_distance by mapping this location ...
0
votes
0
answers
28
views
How to get the "Pick an account" page with a list of cached accounts
I am using MSAL with the WAM broker option for a public client app. Every time I do an interactive logon with PublicClientApplication.AcquireTokenInteractive, I get a page with the title "Sign in&...