Razor Pages and passing parms?
I want to convert the HTML that was working as a MVC view over to a Razor page. I need to pass the ID to the OnPost(), but I have not seen any example of how to pass the item.AuthorID directly not on...
View ArticleWhat are the solution to boost download speed ?
Consider an aspnet core web app that thousands of users use and endpoint to download file. The endpoint serve the file using FileStramResult and setting enableRangeProcessing to true.However the number...
View ArticleProblem with static files. ASP.NET 5 + Docker
Hi. I've problem with static files in my asp net 5 app. Starting my app on Windows through Visual Studio using DNX everything looks perfect. But on Debian running Docker my app can't access any files...
View ArticleWindows Authentication in ASP.NET Core with Kestrel On Linux Plateform
Hello, I am not a developer but I work with others on the implementation of windows authentication in net.core on Linux platform. Apparently, this is now possible directly with Kestrel in version 3...
View ArticleViewdata with if condition is not working in view
@if ((Convert.ToString(@ViewData["newsal"])) == "yes") { <aasp-action="Create">Create New </a>} else {@ViewData["cstaffn"]}is...
View ArticleHow can I pass two argument into JavaScript function id and name
HiI am trying to display to show the a message in a popup dialogue by passing the argument. Here is my code<tr id="tr_@item.EmpDocID"><td> @Html.DisplayFor(modelItem =>...
View Articleinstagram management, educational software
For an educational project, I should build an online app in which the user can upload photos with descriptionsin a queue. These photos should get sent to Instagram at the proper time(which the user...
View Articlecannot resolve scoped service from root provider.
I am using aspnet core 3.0 and getting the following error in the package manager **Cannot resolve scoped service...
View Articleissue from making all my methods async
HiI am trying to make all my methods async, however i have a method which is run inside and outside the constructor, but inside the constructor is has the error saying await methods should be decorated...
View Articleservices.AddHostedService
I have an issue been working on for a few hours with little progress. I have a need for creating services based off a dynamic configuration. IE lets say I have 5 classes that inherit from...
View ArticleDI in .NET Core API for ICommandHandler
Hi, I have implemented CQS pattern in my project. But i have created individual interfaces for each command handlers which is working. I'm trying to get it generated from one common interface...
View ArticleHow can I setup a e-mail server by .net core?
I wanna set up an e-mail server by .net core.For example, my website URL is www.microsoft.comNow I want to create an e-mail address abc@microsoft.com for I don't want to use a third-party e-mail...
View ArticleHow to work in Model item that have NetTopologySuite Geometry datatype in...
Hi,I'am working with the project the have spatial data. I used the NetTopologySuite to use Geometry / Point data type in my model. It's look like :public Point GeoLocation { get; set; }public string...
View ArticleFileLoadException: During runtime for an assembly "package referenced" (local...
Here's the situation what I am facing with:Asp.net core .cs web host project has a reference to package "ABC", version 1.0.1. If I set the package source to restore ABC directly from the feed and...
View ArticleHow Do I Port My IIS Rewrite Rules to ASP.Net Core?
I am trying to port rewrite rules that worked just on a web forms site to my ASP.Net Core site. I was hoping I could do this easily by using something like this in my Startup.cs file:using...
View ArticleHow to deserialize json to geometry data type
Hi every one , I must create an api services that the user can post an geometry (location) and retrieve it.I use PostgreSql as my database and Postgis extension. But now to make it simple I just...
View Articleasp.net core web api hosting
Hi all,I am very new to asp.net webapi.developed a webapi (core 3.0), need to host it on local machine in our compnay network.I published to local folder and copied to folder in new machined where we...
View ArticleConsume webAPi using .NET Core MVC
Hi All,I am try to consume WebAPI using .NET Core MVC but i am getting below messageNo connection could be made because the target machine actively refused it.I have 2 Project in the Solution one is...
View ArticlePeriod (. and ..) in URL path ASP.NET Core
Hello, public class C1 { [Route("a/{b}/c/{d}")] public IActionResult API1(string b, string d) {} [Route("a/{b}/c")] public IActionResult API2(string b, xyz d) {} } public class C2 { [Route("a/{b}")]...
View ArticleHow to call an api every 1 hour in asp.net core api controller
Hi all, Am trying to send an push notification to an mobile regarding timing. So this is an api project in asp.net core. I want to call this api every one hour. So the function in it execute...
View Article