Asp.net core mvc razor refresh UI on new web api update
I have an asp.net core MVC app that consumes an web api and displays the result in a table. How do I refresh the table when the api has new data? I populate the view with my controller by fetch from the api.
Is it posssible to create directory and upload files into shared drive in Razor Pages
Hi, I want to create a file repository using razor pages applications. when i click on add button i should be able to create a folder where i can upload files . i want to create the folder inside a shared drive and i should be able to access the files…
![](https://techprofile.blob.core.windows.net/images/MxBLrky2rESG0hes4GqOKQ.png?8D92C1)
LogLevel values not matching
Hello, Can you please advise why the values for LogLevel in Microsoft.Extensions.Logging, do NOT match those in Microsoft.ApplicationInsights.DataContracts? here is the code: So in my C# code, when I have the statement: …
Add Access Control Origin Response Header
In my ASP.NET CORE MVC, there is a dist folder in wwwroot. Following this example: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-5.0 I configured the startup class to add the Access Control Allow…
How to group the data by the datetime intervals?
I am using asp.net core web api + entityframework core 5.0. there is a table : Id datetime value 0 2021-07-08 14:46:46. 1 1 2021-07-08 14:46:47 5 2 2021-07-08 14:46:48 …
Import Data from Multiple excelsheets using EPPlus
I have to import data from multiple excel file with multiple worksheets to a single postgreSQL table. Is it possible to import using EPPlus library if possible how can I implement that using ASP .Net Core
SetLockoutEnabledAsync possibly has the wrong description
I am working with ASP.NET Core 3.1 on a system to lockout users after 5 attempts. I am trying to use the SetLockoutEnabledAsync(user, false) Method from the UserManager class to unlock an user after they have reset the password, since its decsription is…
Asp.net : table that i want to collect values from and add to empty input to a form
I have an asp.net core MVC app which I have a form with some fields in a table. On the same page, with JavaScript, I generate rows and cells to an existing table that is not in the same as my form. On post in my form I want to collect the values…
SSRS Render Report Using WCF Service : Endpoint = Address=error CS0103: The name '_address' does not exist in the current context
My Development Environment is Dot net 5 and SSRS 2016. SSRS Repot service development another Class Library, WCF Web Service is implement in this library. Using Reporting Services (SSRS) as a reference in an ASP.NET Core site :…
Implement ASP.Net core rate Limit without an Endpoint
I'm using AspNetCoreRateLimit Nuget package. Currently it's working nice, something like below: "IpRateLimiting": { "EnableEndpointRateLimiting": true, "StackBlockedRequests": false, "RealIpHeader":…
autocomplete only works the second time
im trying to repurpose the code found here: https://www.w3schools.com/howto/howto_js_autocomplete.asp the only difference is i wanted to use my database instead of a hard-coded string for the most part i was successful with …
Proper way of wrapping the response along with exception
I have a controller that looks like this: [HttpPost] public async Task<ActionResult> CreateAsync(TodoItems item) { await item.AddNewItemAsync(item.Id, item.Name); return Ok(new ApiOkResponse(item, $"An item has been…
SQL-IIS, Fastest way to return an image: from the file system or database
I have about 100GB of data imported into SQL Server from a Google Firebase database. The bulk of this data are images which are stored as nvarchar(max) which looks something like this: /9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXh.... We have to do 2 things with…
![](https://techprofile.blob.core.windows.net/images/c4mRkDtLdU6n6fSv2i9uBg.png?8D843C)
.Net core support in new Mac OS( ARM based processor)
1.Is .Net Core 3.1 supported in Mac 12 (currently we have mac 12 beta version) 2.What about the support of visual studio to build the .net applications for ARM based Mac systems apart from the current Rosetta translation. Are their any universal…
File Uploading in Scaffolded Page
Hi In my Scaffolded Create Page i have a option for file upload. I want to show this uploaded file in my edit page. In my create page, im creating a folder with name as record ID and the file will be saved into this folder. var…
![](https://techprofile.blob.core.windows.net/images/MxBLrky2rESG0hes4GqOKQ.png?8D92C1)
InvalidOperationException in WebApiConfig File
I'm following this video on creating service stack for Entity Framework and the video uses config.Routes.MapODataRoute("odata", "odata", builder.GetEdmModel()); in their WebApiConfig file. I am using the same piece of code in my…
I want to translate my query to entity framework fluet api but it's giving errors
Hi all, I am trying to implement a query in entity framework core asp.net core 5 using fluent api instead of linq. This is what i want to accomplish SELECT * FROM tblCourseAllocations as allocation LEFT JOIN tblSemesters as semester ON…
Creating own Register/users Table instead of migration Identity
While creating a register system I was thinking to creating my own tables: UserTable = email, encrypted password ,name etc. RoleTalbe = roleName and RoleDescription RoleUserTable = user and RoleName. It seems to me better instead of having to…
How to block those requests?
One of my website is being under attack. I am getting requests, as shown below, from several IPs addresses. Is there a way to block them ?
What is the different between List into Raw View and List into Array ?
I've result set as following, Raw View Into Array How to convert List Raw View into List of Array?