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 ArticleCan'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 ArticleAdding / 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 ArticleDoes 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 ArticleRandom 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 ArticleSet 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 ArticleData 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 ArticleJSON 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 Article1.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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticlePassing 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 Articleasp.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 ArticleWhat 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 ArticleASP.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 ArticleViewComponent 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 ArticleMultiple 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 ArticleRadio 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 ArticleRelative 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