Tag Archives: Web
An alternative way to build and bundle Javascript, CSS in ASP.NET Core MVC and Razor Page projects
This article shows how Javascript packages, files, CSS files could be built and bundled in an ASP.NET Core MVC or Razor Page application. The Javascript packages are loaded using npm in which most Javascript projects are deployed. No CDNs are used, only local files so that all external URLs, non self URL links can be […]
Creating specific themes for OIDC clients using razor views with IdentityServer4
This post shows how to use specific themes in an ASPNET Core STS application using IdentityServer4. For each OpenId Connect (OIDC) client, a separate theme is used. The theme is implemented using Razor, based on the examples, code from Ben Foster. Thanks for these. The themes can then be customized as required. Code: https://github.com/damienbod/AspNetCoreIdentityServer4Persistence Setup […]
Multiple ViewModels in a single MVC View
This post shows how to use multiple models in a single view. The models can be used in separated forms or together in one form. You could use each child model with a separate ajax post if required. Only properties in the parent class affect the child models, but a property in a child model […]
Simple MVC Application using Enterprise Library Validation
This is an example of a simple MVC application using Enterprise Library validation First add the EL validation to your project using nuget: Now the Enterprise Library Validation has to be added to the ModelValidatorProviders Create a EnterpriseLibraryValidatorWrapper class And now create a EnterpriseLibraryValidatorProvider Now add it to the Application_Start() method in the global.asax The […]