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

How to read session in static method in ASP.Net Core

I wanna read session value in ASP.Net Core. If anyone have idea or suggestion please help.Thanks.

View Article


Can't find class in razor views but can in controller action

I have an ASP.NET core web app targeting full .net framework and a reference to class libraries that are targetiing same version of .net framework as asp.net core web app.In a razor view that makes a...

View Article


Adding / Displaying Related Items to the Detail View

Hi,I am building a video game help site.  It runs similar to a store shop website.  Its connected to a SQL Server under one database with about 5 tables. Using some of the MSDN tutorials, I have had...

View Article

Does there any IDE or Tool for Data Modeling in ASP.NET CORE development?

SirDoes there any IDE or Tool for Data Modeling in ASP.NET CORE development?Because I am newbee and finding it difficult to do it.Regards

View Article

Image may be NSFW.
Clik here to view.

Random error in asp.net core website : Managed Debugging Assistant...

I intermitently get an error at the same line of code in a ASP.NET core web application, it is calling a function in a class library. It works the vast majority of the time but sometimes gives the...

View Article


Set up a hosting environment for ASP.NET Core on Linux with Apache, and...

I found the article "Set up a hosting environment for ASP.NET Core on Linux with Apache, and deploy to it"https://docs.microsoft.com/en-us/aspnet/core/publishing/apache-proxy . But it describes the...

View Article

Data Protection Provider Compatibility

Hi,I could use some assistance using the data protection APIs.I have an MVC5 site using forms authentication, and have  configured the SystemWeb data protector replacement with the startup class...

View Article

JSON serilizer and date format

HiI've got a StartDate propetry in my ServiceItem defined like this: [DataType(DataType.Date)] [Required] public DateTime? StartDate { get; set; }Then when I try to serialize SubscriptionServiceItem...

View Article


1.0.1 with SDK Preview 2 build 3131 for windows?

Does anyone know where I can get a copy of the 1.0.1 with SDK Preview 2 build 3131 for windows?  The github page only has 1.0.1 with SDK Preview 2 build 3131 and 3133, which has version 3133 for...

View Article


How to create a Q R Code Generator in Asp.Net Core

Hi,There have any examples in Q R Code Generator in ASP.NET Core ?

View Article

How to live stream on ASP.NET Core ?

Hi everyone,I'm making a website which uses ASP.NET Core as a back-end for video/audio streaming.VideoController.cspublic class VideoController: Controller { // Singleton registered at Startup.cs...

View Article

How to query in an async method?

Hi,I want to filter the database by the id: public async Task<IActionResult> Index(int? id)        {            var viewModel = new ShopIndexData()            {                Categories = await...

View Article

Passing a Parameter Value from Controller to View to ViewComponent

Hmmm...I am loading a Create view as: public IActionResult QuoteSalesProcedure(int id) { ViewData["FrequencyID"] = new SelectList(_context.Frequency.OrderBy(i => i.iFrequency), "FrequencyID",...

View Article


asp.net core api method causing

This is a web api method that worked fine in a asp.net 4.x mvc web app for ages but i'm putting it into a asp.net core web app. Its just a GET request and if you browse to it Chrome it appears to bring...

View Article

What is default timeout value for CookieAuthenticationOptions in asp.net core...

Hi, I am using cookies middleware authentication in ASP.Net core project.I want to know default timeout value for 'CookieAuthenticationOptions.ExpireTimeSpan'. Also It would be great if anyone can...

View Article


ASP.NET Core MVC Rewrite and Default document

I'm trying to set Core MVC Rewrite so:when localhost/part is requested, it responds with the default localhost/part/index.htmlwhen localhost/part/[anything], then still responds with index.html...

View Article

ViewComponent not rendering using TagHelper

I'm in the process of getting to grips with ASPNET CORE [version 1.1, using VS2017 Community, version 15.1 (26403.3)]I've created a working ViewComponent calledUserDetails(abbreviated...

View Article


Multiple authentication methods in ASP.Net Core application

I have a requirement where I need to authorize internal users via Azure AD and external users via Individual User Accounts in my .Net core application (I cannot use Azure B2C for external users).   Is...

View Article

Radio Button Tag Helper sets every radio button to checked

Both of these radio buttons will have checked="checked" on them.  Why would the tag helper add that.  How do you specify that none of them should be checked?<div...

View Article

Relative links in wwwroot folder

Hi, I load a view through action http://localhost/Home/Test which includes some javascript files located in my wwwroot folder ( href="/js/base.js" which points tohttp://localhost/js/base.js ).In...

View Article
Browsing all 9386 articles
Browse latest View live


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