Tagged articles

Found 80 articles tagged with ASP.NET

Simple implementation of ASP.NET Web API Basic authentication security
Securing Web API with simple basic authentication and consuming it from the client code
 
0
Authentication in web services is a bit more different than with web pages because of one simple reason. There is no UI for entering credentials to authenticate to consume service... read more
Displaying multiple select input for Enum in Swagger WebApi UI
Multiple select input Swagger WebApi UI
 
0
Enums in C# can contain multiple values if they are decorated with [Flags] attribute. However, Flag Enums are not recommended to be used in web api action method signatures... read more
Handling Cross-Site Scripting (XSS) in ASP.NET MVC
Handling XSS in ASP.NET MVC with custom Razor Html helpers and HttpModule
 
0
Cross-site Scripting (XSS) refers to client-site code injection attack where an attacker can execute malicious scripts into a web application. Basically attacker manages to upload malicious script code to the website which will be later on served to the users and executed in their browser. It is ofter use to steal form inputs, cookie values, change the page layout or redirect to attackers website. ... read more
Using WebP Images in APS.NET with a fallback to JPEG and PNG
WebP images in ASP.NET with fallback for browsers not supporting WebP
 
0
WebP is an image format introduced by Google Developers and it provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster. ... read more
Minify CSS and JavaScript files with PowerShell script
JavaScript and CSS file optimization with PowerShell script
 
0
Minification of Cascade Style Sheet (CSS) and Java Script (JS) should be on a TODO list for every web application. The minification of CSS and JS can be easily one on the runtime with ASP.NET bundling which is build in in ASP.NET framework, but in case of distributing your resource files over CDN you cannot use the runtime minification. You physical files need to be minified... read more
Switch from HTTP to HTTPS in existing ASP.NET web application
Switch complete traffic from unsecured to secured with web.config update
0
Starting from few years ago, Google enforces secured over unsecured website traffic. However it is an ongoing process since both publishers and advertisers need to implement HTTPS in order to avoid mixed contnet exception in a browser and preventing ads to load on a website. ... read more
Minify HTML output of your pages
Minification of HTML output using ASP.NET IHttpModule
 
0
Minification of resource can speed up your page load and decrease network traffic making you pages load faster, especially on a poor Internet connections. Keep in mind that not all of your website visitors have high speed Internet connection. Especially if you are targeting countries with mostly poor Internet connection, HTML minification can really boost the page load and improve user experience... read more
Simplest way to store lists and dictionaries in config files
Fast and simple way of storing and using lists and dictionaries in config files
0
Configuration files are a useful place too keep any related configuration settings. It provides easy to use configuration fetching which you can invoke from any part of the application. However it does not support many stuff out of the box, but on the other hand it is pretty flexible and expendable. One of the things that are not there built in is support for lists. ... read more
Multiple file upload with ASP.NET WebApi
Upload multiple files using WebApi REST service
0
Taking out business logic from the application allows different clients running on a different platform to use same logic. REST API is a great way to decuple business logic and make it available to different clients on a different platforms. To upload files using WebApi we first need to define an action in a WebApi controller to handle files posted to the endpoint. ... read more
Merge folders with Windows PowerShell script
Detect changes and merge folders and files with PowerShell script
 
0
When deploying application to specific location it is often required to deploy only few files and not the whole deployment package. For example, if you changed only single static image file in your ASP.NET WebApplication, there is no reason to overwrite bin folder content and cause WebApplication on IIS to restart. ... read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more