Horje
force asp.net https Code Example
force asp.net https
Use the NWebSec.Owin NuGet package and add the following line of code to enable 
Strict Transport Security accross the site. Dont forget to add the Preload 
directive below and submit your site to the HSTS Preload site. 
  
More information here and here. Note that if you are not using OWIN, there is a Web.config method you can read up on on the NWebSec site.

// app is your OWIN IAppBuilder app in Startup.cs
app.UseHsts(options => options.MaxAge(days: 30).Preload());




Csharp

Related
c# if else Code Example c# if else Code Example
how to update custom package in unity Code Example how to update custom package in unity Code Example
how to display a form when a button click c# windows form Code Example how to display a form when a button click c# windows form Code Example
ssis sql query in script task Code Example ssis sql query in script task Code Example
the underlying connection was closed nuget Code Example the underlying connection was closed nuget Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8