How to Paging the Index Page implemented by ViewModel
I don't know hot to paging the ViewModel based Index page1. ViewModel in Index Page I created ViewModel because Index Page needs several tables.using System; using System.Collections.Generic; using...
View ArticleCreating a Role
HiI am working from the ASP.NET Core template with Individual User Accounts.And I am trying to create a new Role. My code below gives and error on the CreateAsync line...Object not set to an instance...
View ArticleSwitching up package versions
I can't seem to get the correct and matching packages.I ported a project from Asp.Net MVC 5 / EF 6 to MVC 6 with EF Core 7 and have been in package hell. Conflicting packages, errors,...It's probably...
View ArticleView page that using RoleManager
How to rendering Role model in View Page?My Controller works good. // POST: /Roles/Create [HttpPost] public async Task<IActionResult> Create(IdentityRole roleViewModel) { if (ModelState.IsValid)...
View ArticleExternal login error
Hi,I've created a vanilla aspnet core mvc application. I've updated to latest packages (1.1.0). My goal is to be able to offer social logins, like Facebook. I've gone through the setup on facebook's...
View Articleasp.net core can work in stand alone projects? (not websites)
On a different forum I recently asked if there was a way to quickly convert websites to stand alone programs that people could run on their PC (without an internet connection). One person suggested...
View ArticleHierarchical dropdown
HiI'm trying to create a hierarchical drop-down select listParent1-Child1--Subchild1Parent2-Subchild1 --Subchild2 ---Subchild3Could you please provide some examples of how to do it?Official docs have...
View ArticleGetting error Compilation Error
Hi when i'm run my application then i'm getting error,but i'm find some solution but not working so how can i'm resolve this issue.please review this screenshot...
View ArticleAsp.Net Commnity menu
Hi,I want to create a menu table view like asp.net community menu.Guide please.Thank you
View Articleyeoman aspnet:mvccontroller generator with scaffolding
Hi,Has anyone of you tried to generate MVC Controller with scaffolding based on model class using yeoman generator? I'm trying ASP.NET Core on OSx, using Visual Studio Code. On Windows+Visual Studio...
View Article.NET core MVC Constructor injection with builtin DI container
I have a contract(interface) called INotifier and implmented it in two classes SMSNotifier and EmailNotifier. Now i want to inject these two implementations as an array of dependencies to INotifier[]....
View ArticleHow to create date picker in Dotnet core??
I am trying to search for free date picker using simple html or tag helper while building dotnet core web app.I am kindoff stucked.. please provide following assist.Regards,saurabhnachankar@gmail.com...
View ArticleBest Practice for Global Variables?
In past versions of ASP.NET there were different techniques for establishing global variables (aka module level variables) that could be easily retrieved from any code in the project.With ASP.NET Core,...
View ArticleCreate roles and give permission for the users using asp.net core with entity...
Hi buddies, I'm newbie to the asp.net core web api and entity framework core. We are planing to create rest api using asp.net core web API with entity frame work core 1.0. I want to create...
View ArticleCultureInfo.CurrentCulture.Name not being set correctly in IE 11/Edge Windows 10
Hello All,We have implemented Localization in MVC core application.Created resource files for each language.For Chinese, we have resource with zh-CN extension.I see different behaviour of application...
View ArticleKestrel and Command prompt
Just started to use ASP.Net Core MVC and find Kestrel very interesting. However, I also find the command window annoying and too easy to click shutdown down the server.Somebody knows how to get rid of...
View ArticleReferencing regular .NET Class Library in ASP.NET 5 project
I have a web site built by using ASP.NET 5 MVC template (I am using RC1 Update 1) , I need that web site to reference a DLL which was built by using regular .NET Class Library targeting .NET Framework...
View ArticleConnectionString in Asp.Net Core
In Asp.Net MVC 5 in the connection string we could tell EF to create the DB .mdf file inside the project, by adding this inside the connection string:AttachDbFilename=|DataDirectory|\dbname.mdfWhen I...
View ArticleClear Cache - IIS/ASP .NET Core
The problem that I am having is that all of the browsers I'm using are clinging on to an older version of my JavaScript file. I've tried Chrome, Firefox, IE, and Edge. I've tried manually clearing out...
View ArticlePlesk ConnectionsStrings MSSQL
Hi, I wrote some code using asp.net core (using .net framework). Use EF to design my DB. Localy everything work!In plesk i import the dump of the DB (export using MSSQL Management Studio).The app runs...
View Article