Are you over 18 and want to see adult content?
More Annotations
A complete backup of https://xlxy.edu.cn
Are you over 18 and want to see adult content?
A complete backup of https://viewhouse.com
Are you over 18 and want to see adult content?
A complete backup of https://newsforyou.news
Are you over 18 and want to see adult content?
A complete backup of https://breedingbusiness.com
Are you over 18 and want to see adult content?
A complete backup of https://redamazonica.org
Are you over 18 and want to see adult content?
A complete backup of https://opencontainers.org
Are you over 18 and want to see adult content?
A complete backup of https://heimkinoheld.de
Are you over 18 and want to see adult content?
A complete backup of https://migrantes.it
Are you over 18 and want to see adult content?
A complete backup of https://bondinho.com.br
Are you over 18 and want to see adult content?
A complete backup of https://mrkent.com
Are you over 18 and want to see adult content?
A complete backup of https://mnsenaterepublicans.com
Are you over 18 and want to see adult content?
A complete backup of https://pickfordfilmcenter.org
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of cantinhocraft-nana.blogspot.com.br
Are you over 18 and want to see adult content?
A complete backup of bewusstscout.wordpress.com
Are you over 18 and want to see adult content?
A complete backup of woodworkersjournal.com
Are you over 18 and want to see adult content?
A complete backup of plugin-alliance.com
Are you over 18 and want to see adult content?
A complete backup of cochem-ferienwohnungen.de
Are you over 18 and want to see adult content?
Text
BENJII.ME
SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. DOWNLOAD AN ASP.NET MVC VIEW AS A WORD DOCUMENT Download any of your ASP.NET MVC Views as a Word Document thanks to this Filter Attribute. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. EXPRESSION AND PROJECTION MAGIC FOR ENTITY FRAMEWORK CORESEE MORE ONBENJII.ME
SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. DOWNLOAD AN ASP.NET MVC VIEW AS A WORD DOCUMENT Download any of your ASP.NET MVC Views as a Word Document thanks to this Filter Attribute. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. GLOBAL ROUTES FOR ASP.NET CORE MVC Global Routes for ASP.NET Core MVC. 07 August, 2016. Want to detect part of the url for every single action in your asp.net core mvc app? It’s useful for determining API versions, detecting user accounts and it’s quite easy to do. Today we’re going to prepend api/ {mode} to all routes in our api. {mode} will contain “test” or“live
USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). DOTNET EF MIGRATIONS FOR ASP.NET CORE The Basic Commands. As a quick recap, here are the basic commands you’ll need to write migrations for ASP.NET Core. If you’re coming from DNX, not much has changed. Add a new migration (If it’s the first one, it will add the neccessary folder structure and classes) dotnet ef migrations add {MigrationName} Remove the most recentmigration.
ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017 Entity Framework Core Migrations have changed once more thanks to Visual Studio 2017 and the .csproj format. In the third iteration of this series I once again show you how to enable migrations, this time including class libraries and multiple contexts. ENTITY FRAMEWORK CORE MIGRATIONS FOR CLASS LIBRARY PROJECTS Entity Framework Core Migrations for Class Library Projects. 29 June, 2016. Entity Framework Core 1.0.0 RTM still does not support migrations for class library projects. If you’re like me and like to keep your entity framework data layer in a separate project, this is a problem. Luckily the workaround isn’t too difficult. GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. REMOVE IDENTITY FROM PRIMARY KEY WITH DROP AND RECREATE TABLE BEGIN TRANSACTION -- For practicing without changing the database -- Step 1: Create new table CREATE TABLE .( PRIMARY KEY NOT NULL, (100) NOTNULL, NOT NULL,
NULL, ) -- Step 2: Copy over the data INSERT INTOSELECT * FROM
RUN IIS EXPRESS ON PORT 443 USING SSL AND WILDCARD SUBDOMAINS Run IIS Express on Port 443 Using SSL and Wildcard Subdomains. 04 November, 2014. In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress. If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have runBEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). IDENTITY SERVER 4 SOLUTION ARCHITECTURE Pinch.Auth This contains the actual implementation of Identity Server. I’m using IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentity to take advantage of the ASP.NET Identity authentication system, stored in a SQL Server using EntityFramework.
SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). IDENTITY SERVER 4 SOLUTION ARCHITECTURE Pinch.Auth This contains the actual implementation of Identity Server. I’m using IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentity to take advantage of the ASP.NET Identity authentication system, stored in a SQL Server using EntityFramework.
SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 IDENTITY SERVER 4 SOLUTION ARCHITECTURE Pinch.Auth This contains the actual implementation of Identity Server. I’m using IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentity to take advantage of the ASP.NET Identity authentication system, stored in a SQL Server using EntityFramework.
HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017 Entity Framework Core Migrations have changed once more thanks to Visual Studio 2017 and the .csproj format. In the third iteration of this series I once again show you how to enable migrations, this time including class libraries and multiple contexts. USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). DOTNET EF MIGRATIONS FOR ASP.NET CORE The Basic Commands. As a quick recap, here are the basic commands you’ll need to write migrations for ASP.NET Core. If you’re coming from DNX, not much has changed. Add a new migration (If it’s the first one, it will add the neccessary folder structure and classes) dotnet ef migrations add {MigrationName} Remove the most recentmigration.
SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski. GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. RUN IIS EXPRESS ON PORT 443 USING SSL AND WILDCARD SUBDOMAINS Run IIS Express on Port 443 Using SSL and Wildcard Subdomains. 04 November, 2014. In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress. If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have runBEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. IDENTITY SERVER 4 SOLUTION ARCHITECTURE Pinch.Auth This contains the actual implementation of Identity Server. I’m using IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentity to take advantage of the ASP.NET Identity authentication system, stored in a SQL Server using EntityFramework.
USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. IDENTITY SERVER 4 SOLUTION ARCHITECTURE Pinch.Auth This contains the actual implementation of Identity Server. I’m using IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentity to take advantage of the ASP.NET Identity authentication system, stored in a SQL Server using EntityFramework.
USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 IDENTITY SERVER 4 SOLUTION ARCHITECTURE Pinch.Auth This contains the actual implementation of Identity Server. I’m using IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentity to take advantage of the ASP.NET Identity authentication system, stored in a SQL Server using EntityFramework.
HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017 Entity Framework Core Migrations have changed once more thanks to Visual Studio 2017 and the .csproj format. In the third iteration of this series I once again show you how to enable migrations, this time including class libraries and multiple contexts. USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). DOTNET EF MIGRATIONS FOR ASP.NET CORE The Basic Commands. As a quick recap, here are the basic commands you’ll need to write migrations for ASP.NET Core. If you’re coming from DNX, not much has changed. Add a new migration (If it’s the first one, it will add the neccessary folder structure and classes) dotnet ef migrations add {MigrationName} Remove the most recentmigration.
SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski. GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. RUN IIS EXPRESS ON PORT 443 USING SSL AND WILDCARD SUBDOMAINS Run IIS Express on Port 443 Using SSL and Wildcard Subdomains. 04 November, 2014. In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress. If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have run CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
DOWNLOAD AN ASP.NET MVC VIEW AS A WORD DOCUMENT Download any of your ASP.NET MVC Views as a Word Document thanks to this Filter Attribute. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround. HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
DOWNLOAD AN ASP.NET MVC VIEW AS A WORD DOCUMENT Download any of your ASP.NET MVC Views as a Word Document thanks to this Filter Attribute. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. GLOBAL ROUTES FOR ASP.NET CORE MVC Global Routes for ASP.NET Core MVC. 07 August, 2016. Want to detect part of the url for every single action in your asp.net core mvc app? It’s useful for determining API versions, detecting user accounts and it’s quite easy to do. Today we’re going to prepend api/ {mode} to all routes in our api. {mode} will contain “test” or“live
DOTNET EF MIGRATIONS FOR ASP.NET CORE The Basic Commands. As a quick recap, here are the basic commands you’ll need to write migrations for ASP.NET Core. If you’re coming from DNX, not much has changed. Add a new migration (If it’s the first one, it will add the neccessary folder structure and classes) dotnet ef migrations add {MigrationName} Remove the most recentmigration.
USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017 Entity Framework Core Migrations have changed once more thanks to Visual Studio 2017 and the .csproj format. In the third iteration of this series I once again show you how to enable migrations, this time including class libraries and multiple contexts. TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski. REMOVE IDENTITY FROM PRIMARY KEY WITH DROP AND RECREATE TABLE BEGIN TRANSACTION -- For practicing without changing the database -- Step 1: Create new table CREATE TABLE .( PRIMARY KEY NOT NULL, (100) NOTNULL, NOT NULL,
NULL, ) -- Step 2: Copy over the data INSERT INTOSELECT * FROM
RUN IIS EXPRESS ON PORT 443 USING SSL AND WILDCARD SUBDOMAINS Run IIS Express on Port 443 Using SSL and Wildcard Subdomains. 04 November, 2014. In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress. If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have runBEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. EXPRESSION AND PROJECTION MAGIC FOR ENTITY FRAMEWORK CORESEE MORE ONBENJII.ME
USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 EXPRESSION AND PROJECTION MAGIC FOR ENTITY FRAMEWORK CORESEE MORE ONBENJII.ME
CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
GLOBAL ROUTES FOR ASP.NET CORE MVC Global Routes for ASP.NET Core MVC. 07 August, 2016. Want to detect part of the url for every single action in your asp.net core mvc app? It’s useful for determining API versions, detecting user accounts and it’s quite easy to do. Today we’re going to prepend api/ {mode} to all routes in our api. {mode} will contain “test” or“live
DOTNET EF MIGRATIONS FOR ASP.NET CORE The Basic Commands. As a quick recap, here are the basic commands you’ll need to write migrations for ASP.NET Core. If you’re coming from DNX, not much has changed. Add a new migration (If it’s the first one, it will add the neccessary folder structure and classes) dotnet ef migrations add {MigrationName} Remove the most recentmigration.
HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). DOWNLOAD AN ASP.NET MVC VIEW AS A WORD DOCUMENT Notice that this layout removes all extra content and only renders the view (RenderBody). 3 - Usage: An Example View (using ViewBag.WordDocumentMode) TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski. HOW TO USE THE LONG LIST SELECTOR FOR WINDOWS PHONE MANGO The idea is we are going to bind a list of groups to our long list selector. Check out the following code and then meet me on the other side for an explanation. var allTorrents = (from torrent in model select new TorrentListItemViewModel(torrent)); var emptyGroups = newList () { new Group
RUN IIS EXPRESS ON PORT 443 USING SSL AND WILDCARD SUBDOMAINS Run IIS Express on Port 443 Using SSL and Wildcard Subdomains. 04 November, 2014. In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress. If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have runBEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. EXPRESSION AND PROJECTION MAGIC FOR ENTITY FRAMEWORK CORESEE MORE ONBENJII.ME
USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. EXPRESSION AND PROJECTION MAGIC FOR ENTITY FRAMEWORK CORESEE MORE ONBENJII.ME
USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
GLOBAL ROUTES FOR ASP.NET CORE MVC Global Routes for ASP.NET Core MVC. 07 August, 2016. Want to detect part of the url for every single action in your asp.net core mvc app? It’s useful for determining API versions, detecting user accounts and it’s quite easy to do. Today we’re going to prepend api/ {mode} to all routes in our api. {mode} will contain “test” or“live
DOTNET EF MIGRATIONS FOR ASP.NET CORE The Basic Commands. As a quick recap, here are the basic commands you’ll need to write migrations for ASP.NET Core. If you’re coming from DNX, not much has changed. Add a new migration (If it’s the first one, it will add the neccessary folder structure and classes) dotnet ef migrations add {MigrationName} Remove the most recentmigration.
HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). DOWNLOAD AN ASP.NET MVC VIEW AS A WORD DOCUMENT Notice that this layout removes all extra content and only renders the view (RenderBody). 3 - Usage: An Example View (using ViewBag.WordDocumentMode) TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski. HOW TO USE THE LONG LIST SELECTOR FOR WINDOWS PHONE MANGO The idea is we are going to bind a list of groups to our long list selector. Check out the following code and then meet me on the other side for an explanation. var allTorrents = (from torrent in model select new TorrentListItemViewModel(torrent)); var emptyGroups = newList () { new Group
RUN IIS EXPRESS ON PORT 443 USING SSL AND WILDCARD SUBDOMAINS Run IIS Express on Port 443 Using SSL and Wildcard Subdomains. 04 November, 2014. In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress. If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have runBEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. EXPRESSION AND PROJECTION MAGIC FOR ENTITY FRAMEWORK CORESEE MORE ONBENJII.ME
USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 CREATING A SELF-SIGNED CERTIFICATE FOR IDENTITY SERVER AND 1. Download the handy installer: 2. Add the binaries to the system path. The default install location is C:\OpenSSL-Win32. Wherever you installed it, you’ll need to add the bin folder to the system path. In my case, I added the following to system path: C:\OpenSSL-Win32\bin. 3. EXPRESSION AND PROJECTION MAGIC FOR ENTITY FRAMEWORK CORESEE MORE ONBENJII.ME
USING SMTP WITH WORDPRESS AND IIS Authentication. Yes: Use SMTP Authentication. Username. anyuser@yourdomain.com. Password. yourpassword. If you are using the WP Mail SMTP plugin, you can send a test email by entering an email address in the textbox provided and clicking Send Test. Any emails sent from wordpress should now be working. USING SESSIONS AND HTTPCONTEXT IN ASP.NET CORE AND MVC CORE Now that we have the Session nuget package installed, we can add sessions to the ASP.NET Core pipeline. Open up startup.cs and add the AddSession () and AddDistributedMemoryCache () lines to the ConfigureServices (IServiceCollection services) Next, we’ll tell ASP.NET Core to use a Memory Cache to store the session data. SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
HOW TO USE SQL SERVER ENCRYPTION WITH SYMMETRIC KEYSSEE MORE ONBENJII.ME
ENABLE ENTITY FRAMEWORK CORE MIGRATIONS IN VISUAL STUDIO 2017SEE MOREON BENJII.ME
GET THE ABSOLUTE URI FROM ASP.NET MVC CONTENT OR ACTION There are times when you need to get the full url from an action or content. This also crops up when you create short urls. Here are the best ways to get it done in ASP.NET MVC. SINGLE SIGN-OUT / LOGOUT FOR IDENTITY SERVER 4 Single Sign-Out / Logout for Identity Server 4. 08 April, 2016. Currently if you try to logout of your Identity Server 4 protected web application, you are immediately logged back in thanks to Identity Server 4’s own authentication cookie. Single Sign-out hasn’t been implemented in idsrv4 yet, so here’s a handy workaround.BEN CULL'S BLOG
What it takes to bring Payments to the Xero Roadshow 12 February, 2019; Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon 13 September, 2018; Time Service 23 July, 2018; Material Design stack for Angular 6 17 May, 2018; Expression and Projection Magic for Entity Framework Core 04 January, 2018; Identity Server 4 Solution Architecture 18 October, 2017 SUBDOMAIN ROUTING IN ASP.NET MVC Detecting and routing based on a subdomain in ASP.NET MVC is fairly easy with this handy snippet of code. Usage. Just add it to your routeconfig like so:
GLOBAL ROUTES FOR ASP.NET CORE MVC Global Routes for ASP.NET Core MVC. 07 August, 2016. Want to detect part of the url for every single action in your asp.net core mvc app? It’s useful for determining API versions, detecting user accounts and it’s quite easy to do. Today we’re going to prepend api/ {mode} to all routes in our api. {mode} will contain “test” or“live
DOTNET EF MIGRATIONS FOR ASP.NET CORE The Basic Commands. As a quick recap, here are the basic commands you’ll need to write migrations for ASP.NET Core. If you’re coming from DNX, not much has changed. Add a new migration (If it’s the first one, it will add the neccessary folder structure and classes) dotnet ef migrations add {MigrationName} Remove the most recentmigration.
HOW TO SEND EMAIL USING .NET CORE The new .NET Core doesn’t support SMTP yet but there’s a better way! Fluent Email let’s you send emails with razor templates, has integrations with third party mail senders like Mailgun, and even supports SMTP for .NET 4.6. USING SESSIONS AND HTTPCONTEXT IN ASP.NET 5 AND MVC6 Add Session NuGet Package. Add the Microsoft.AspNet.Session NuGet package to your project.. VERSION WARNING: If you’re using ASP.NET 5 before RTM, make sure the beta version is the same across your whole project. Just look at your references and make sure they all end with beta8 (or whichever version you’re using). DOWNLOAD AN ASP.NET MVC VIEW AS A WORD DOCUMENT Notice that this layout removes all extra content and only renders the view (RenderBody). 3 - Usage: An Example View (using ViewBag.WordDocumentMode) TRACK CREATED AND MODIFIED FIELDS AUTOMATICALLY WITH Track Created and Modified fields Automatically with Entity Framework Code First. 07 March, 2014. Keep track of when your entities change automatically, by implementing a couple of quick changes. UPDATE 2016-07-07: Now includes async methods and improved null checking thanks to Tymek Majewski. HOW TO USE THE LONG LIST SELECTOR FOR WINDOWS PHONE MANGO The idea is we are going to bind a list of groups to our long list selector. Check out the following code and then meet me on the other side for an explanation. var allTorrents = (from torrent in model select new TorrentListItemViewModel(torrent)); var emptyGroups = newList () { new Group
RUN IIS EXPRESS ON PORT 443 USING SSL AND WILDCARD SUBDOMAINS Run IIS Express on Port 443 Using SSL and Wildcard Subdomains. 04 November, 2014. In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress. If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have runBen Cull's Blog
More from me at BENCULL.COM * What it takes to bring Payments to the Xero Roadshow12 February, 2019
* Lessons from the "Lobster Hat" guys in Startup Alley at XeroCon13 September, 2018
* Time Service 23 July, 2018 * Material Design stack for Angular 617 May, 2018
* Expression and Projection Magic for Entity Framework Core04
January, 2018
* Identity Server 4 Solution Architecture18 October, 2017
* Creating a Self-Signed Certificate for Identity Server and Azure09
June, 2017
* Enable Entity Framework Core Migrations in Visual Studio 201730 May, 2017
* Parse and Modify Query Strings in ASP.NET Core11 April, 2017
* How to Send Email using .NET Core13 February, 2017
* Is Active Route Tag Helper for ASP.NET MVC Core29 January,
2017
* ASP.NET Community Standup TL;DW - 22 Nov 201625 November,
2016
* Global Routes for ASP.NET Core MVC07 August, 2016
* Using Sessions and HttpContext in ASP.NET Core and MVC Core23 July, 2016
* Why Angular-CLI Creates a Shared Index.ts - Barrel Modules05 July, 2016
* Entity Framework Core Migrations for Class Library Projects29 June, 2016
* Dotnet EF Migrations for ASP.NET Core28 May, 2016
* Single Sign-Out / Logout for Identity Server 408 April, 2016
* New Configuration and AppSettings for MVC6 - Web.config is Gone07
April, 2016
* Getting Started with Autofac and MVC6 + ASP.NET Core (aka ASP.NET5) 26 January,
2016
* Angular 2 Routing with ASP.NET Core 1 (aka ASP.NET 5)21 January, 2016
* Better Error Handling and Custom Errors for ASP.NET MVC23
October, 2015
* A Better Require HTTPS Attribute for ASP.NET MVC06 October, 2015
* Tips for Hiring a Development Team and CTO14 July, 2015
* Using Sessions and HttpContext in ASP.NET 5 and MVC610
July, 2015
* NDC Oslo 2015 - Taking Other People's Money25 June, 2015
* Get the Absolute URI from ASP.NET MVC Content or Action20
May, 2015
* Subdomain Routing in ASP.NET MVC20 February, 2015
* Remove Identity from Primary Key with Drop and Recreate Table13 February, 2015
* Run IIS Express on Port 443 Using SSL and Wildcard Subdomains04 November, 2014
* Handling Validation Errors with AngularJS and ASP.NET MVC09 October, 2014
* Angular Directive for Bootstrap-Switch25 July, 2014
* IE is caching my AngularJS requests to ASP.NET MVC24 July,
2014
* The State of Payments in Australia - DDD Melbourne Edition21 July, 2014
* Kendo Date Picker Directive for AngularJS01 May, 2014
* Move Shelveset to a Different Branch in TFS15 April, 2014
* The State of Payments in Australia31 March, 2014
* Wizard Style Navigation Tabs for Bootstrap12 March, 2014
* Track Created and Modified fields Automatically with Entity Framework Code First07 March, 2014
* Download an ASP.NET MVC View as a Word Document30
January, 2014
* You can use TextBoxFor to output other HTML5 elements in ASP.NETMVC
14 November, 2013
* QuickEvent - A tiny javascript event engine17 February,
2013
* WinJS - Call a Static Method or Property from an Instance16
December, 2012
* Run Multiple SSL Websites on IIS6 Using a Wildcard Certificate29 November, 2012
* Using LESS CSS With MVC4 Web Optimization01 October, 2012
* Property with NotifyOfPropertyChange Code Snippet forCaliburn.Micro
16 September, 2012
* How to Force Light Theme in your XAML Windows 8 App13
September, 2012
* Setting up a SOAP WebService with SSL using Configurationless WCF21 August, 2012
* Navigation for WinJS Metro Style Apps | Windows 8 Tutorials05 August, 2012
* JobFork - The Australian Developer Job Board02 July, 2012
* What is Gadgeteer? – Getting Started21 February, 2012
* Using Multiple Application Bars in Windows Phone Development12 December, 2011
* Continuum Transition for Windows Phone Silverlight Toolkit07 November, 2011
* How to Use the Long List Selector for Windows Phone Mango09 October, 2011
* Using the MVC-Mini-Profiler with Entity Framework26 July,
2011
* Scrollfixed Sidebar Tutorial with jQuery05 June, 2011
* TwitLinkz Wp7 App – Summarizing a Twitter Feed Near You!24
May, 2011
* Torrential – uTorrent WP7 App – Version 1.3 Available Now!08
May, 2011
* A Brand New Set of Live Tiles for Torrential Coming Soon05 May, 2011
* Push Notifications in Windows Phone 7 – 3: Push thatNotification
23 April, 2011
* Push Notifications in Windows Phone 7 – 2: Code on the Server18 January, 2011
* Getting Started Guide 17January, 2011
* Push Notifications in Windows Phone 7 – 1 Code on the Device13 December, 2010
* Torrential – uTorrent WP7 App – Version 1.2 Available Now!04
December, 2010
* Torrential – uTorrent client for Windows Phone 7 in theMarketplace!
15 November, 2010
* Building Torrential – A Windows Phone 7 Story10 November,
2010
* Torrential 08 November, 2010 * Privacy Policy 08 November, 2010 * Credit Card Validator Attribute for ASP.NET MVC 304
November, 2010
* SplitQuoteSafe – A SQL function for splitting a string16
September, 2010
* SuperQ – A Portable Persistent .NET Queue05 September, 2010
* jQax jQuery plugin – The jQuery plugin version of the jQax ajaxwrapper
18 August, 2010
* jQax – A Simple jQuery Ajax Wrapper with Loading Notification13 August, 2010
* Endless Scrolling ListView in Android09 August, 2010
* Simple MVC 2 Pager Control – PagerHtmlHelper26 July, 2010
* Android Updates for the HTC Hero the Custom Way with VillainROM21 July, 2010
* How to use SQL Server Encryption with Symmetric Keys11
May, 2010
* How to return multiple formats with WCF including XML, JSON andATOM
06 May, 2010
* Deserializing JSON in Android using GSON30 April, 2010
* I’m an Android developer 22April, 2010
* Javascript Classes are a Best Practice for Cleaner Javascript15 April, 2010
* Using SMTP with Wordpress and IIS28 March, 2010
* 5 Lifesaving Tips for Creating a WCF RESTful API in .NET 423 March, 2010
Made with love by Ben CullDetails
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0