Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

Dealing static files in Production mode

Hi,I can't figure out how I am supposed to handle static files in different modes (I work with VSTS Ci/Cd using Docker)Considering the following use case (_Layout.cshtml) :@* CSS *@<environment...

View Article


Get Session from Javascript in Core 2.0

Hi,I have an extension method for sessions from MS docsusing Microsoft.AspNetCore.Http; using Newtonsoft.Json; public static class SessionExtensions { public static void Set<T>(this ISession...

View Article


check only password

I'm building a backend for an API. I just want to check the password for violations of duty like length or digits with api call. I don't want to change the password. second challenge is that I can't...

View Article

Lambda expression Tree loop

Hello,Here is what i want to do:List<String> values = new...

View Article

How to add an asmx service in asp.net core 2.0 and access it from javascript

I'm trying to add a asmx service to an asp.net core 2.0 application. First it doesn't allow me to add a new asmx service (since it's a .net core application). So I did Add Existing Item and added an...

View Article


Logging application event

I'm trying to find a tutorial for logging events, the ones I found are not complete can someone point me to a good complete tutorial?

View Article

Image may be NSFW.
Clik here to view.

get value from angular 5 component and pass it to h3 text inside view?

HiPlease i try t make this task but i think i miss something -i have an view that has one angular component (that get category from db) and some html text (not in any component) - now i need when user...

View Article

What is the correct implementation of middleware that validates a custom...

I had no luck getting asp `antiforgery` token working in my [angular app][1]. I am using `JWT` and I found thispost which suggests a workaround to avoid CSRF attacks. so I included `xsrfToken` in my...

View Article


Trying to start a SignalR connection from an ASP.NET Core action call gives...

The setup I'm trying to accomplish is this: I have a signalR server that supports 2 types of clients - one type that supplies data and another that receives data. When a "receiver" type client chooses...

View Article


Upload File to the path out of webroot

With the asp.net core , I can upload a file to the  wwwroot path , but how can I upload file to the path out of  wwwroot , e.g. “D:/MyPath”,My  code, like  this :  var filePath = @"D:\mydata";using...

View Article

File not found http://localhost:5000/dist/tryCatch.js.map

Hello,I have created a blank asp.net core mvc 2.0 angular project. I've typed "npm install" in project sub folder.Everything seems to work, but i get this error in my browser:404 not found:...

View Article

Net Core new angular templates

Hi,You can help me with this error. I am testing the new angular net core templates [link].With Visual Studio 2017 in debug mode these errors come out. Hot changes (html) do not apply.I have a personal...

View Article

Cookies and Session Stored In TempData In ASP.NET Core

Use of TempData for cookies and session ? Please let me know via example.

View Article


Accessing AAD in a ASP.NET Core 2.0 WebAPI project with AAD authentication

Hi there,I am developing a MVC/WebAPI project, that authenticates the user against an AAD. This works perfectly (because it was set up by the project creation assistant ;)). But now I am faced with the...

View Article

Performance problems with WebAPI using a huge Proxy Class

Hi there,I have written an ASP.NET Core WebAPI interface to enable other applications accessing a central application's data. This is done by consuming a SOAP web service. So I used Visual Studio to...

View Article


View Component does not POST/GET to action method

I have a viewcomponent in my _Layout Page as follows:<form id="lang_form" asp-controller="Home" asp-action="RedirectToLanguage" method="get"><select name="lang" id="lang_ddl"...

View Article

ASP.NET MVC Core 2 - Which one to choose "MVC Approach" or Razor Pages

Hi All,I am currently trying ASP.NET MVC Core 2. Today I come up with a new concept of Razor Pages "roughly" similar to old aspx and code behind file in asp.net web forms. Now the question iswhich...

View Article


Core 2.0 Loading Session asynchronously

Hi,from the MS docs:The default session provider in ASP.NET Core loads the session record from the underlying IDistributedCache store asynchronously only if the ISession.LoadAsync method is explicitly...

View Article

Top ASP.Net Web Application Framework

What are the Top ASP.Net Web Application Framework  ? 

View Article

I need sample of NTier architecture codebase in asp.net core

Dear All,Please I am new to asp.net core. I am trying to use the NTIER Architecture model in my asp.net core project. Al the tutorials that I have seen dont follow this model.I have been able to...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>