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

Adding Set to DBContext

My .Net Core application has a DbContext with several DBSet<> properties. However, I want to also add additional entities to the DbContext. They have System.ComponentModel.DataAnnotations, the...

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


After logout in SSO, some time it is not rediercting to client application...

After logout in SSO, some time(if we logout after keeping idle for 10 mins) it is not rediercting to client application home page.

View Article

Reporting Tools For Asp.net Core MVC v2

Hii want to create a report in my application Asp.net Core mvc   .net core 2i need a reporting tools like Stimulsoft Reports  But Freeis there a free reporting tools for asp.net core 2 mvc ??

View Article

How to submit data with Jquery Datatables

<div class="comment-right-col comment-body">Hi Everyone,<div>I've been on this now for days without solution but with Edward effort, the issue is almost close.I'm trying to submit data i...

View Article


Save multiple rows simultaneously from the same form

Hi Guys,I really hope you will be able to help me with this, I am still learning and can't get my head around this problem.I have a table that has one empty column into which user can enter a comment....

View Article

Asp.Net Core Submit data with Jquery Datatables

Hi Everyone,I've been on this now for days without solution but with Edward effort, the issue is almost close.I'm trying to submit data i loaded into JQuery Datatables. Below is my complete codeThis is...

View Article

Adding to IServiceCollection in Configure()

After adding most of my services in ConfigureServices(), One of the services is instantiated using app.ApplicationServices.GetServices<> at the beginning of Configure(). This utilizes the...

View Article


Read Json into AWS Lambda

Hi,I have the following Json I'm trying to loop through:{"codea": "23DWDQW","request_time": "2018-01-05T16:44:24Z","lookingup": {"497": [{"mode": "transit","line": "497","aimed_time": "16:45" },...

View Article


DateTime.Now.IsDaylightSavingTime() return wrong value

I'm running a application on Windows Server 2003 when i got a TimeZone problems.I did the following aspx page to confirm the problem:<%@ Import Namespace="System.Globalization.CultureInfo"...

View Article

Authentication and Authorization with JWT without EF & Identity

Hi there,I'm searching for tutorials / codesnippets / guide which tells me, how to implement JWT authentication without Identity and EF. Also i need some informations in how to implement an...

View Article

Using Kestrel with named pipes?

Hello,I was wondering if anyone knew how to get Kestrel to listen on named pipes such that the only modifications to an already existing program that is using HTTPClient should be changing the...

View Article

image uploader for ckeditor in asp.net core

Hello.I am workig on a project using asp.net core and in this project I need to add feature for uploading image in ckeditor, I did this in WebForms but in asp.net core I have no idea, can some one help...

View Article


Render Asp.net core Razor page to string?

In Asp.net core 2 Razor pages, I want to render a Razor page with a model, and save it to a string. The intention is to send the string as an email (the rendered page is an invoice). I found this for...

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


Inject either parent or child object based on route value in ASP.NET core

How to inject either parent or child object based on route value to a asp.net mvc core controller. If possible by .NET CORE default DI mechanism or something like structure map . if route value is x i...

View Article

How to avoid nullreference error when trying to add data to viewmodel?

Trying to learn programming with Razor pages in asp.net core 2. The page should provide an registration form for events. The database lookup based on the event id in the querystring works, however I...

View Article


Jquery AjaxComplete calls Action Method indefinitely with DataTables Server Side

Hi Everyone,I've been battling with this for days now and no solution yet. Below is my complete code.This is my Model Classpublic class GradeStep : Base.Configurations { public int Id { get; set; }...

View Article

How can i translate this string sql query in entityframework/link

Hello,I want to write the same query in an entityframework context, with linq query syntax.The problem is not the query itself but the way i build this query. It is easy to concatenate strings in order...

View Article

Configuration.GetConnectionString() issue

public void ConfigureServices(IServiceCollection services) { //数据库配置 //services.AddDbContextPool(f => f.UseMySQL(Configuration.GetConnectionString("EntityContext")));...

View Article
Browsing all 9386 articles
Browse latest View live


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