
Image from Pexels
Tagged articles - HTML
Found 19 articles tagged with HTML
08
May
2018
Monitoring DOM changes with JavaScript
JavaScript31 titlesHandling DOM changes with plain JavaScript
0
If you are dealing with pure JavaScript without using any library, you probably want to trigger your custom actions on some element event. This is easily done with addEventListener which is in general supported by all now days browsers. ...read more
02
Mar
2018
Minify HTML output of your pages
Umbraco CMS25 titlesMinification 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...read more
28
Feb
2018
Export DataTable to HTML in C#
.NET229 titlesGenerate HTML table from DataTable instance in C#
0
When I searched for exporting s to HTML table in C# I found a lot of articles and code snippets which are basically doing string concatenation or String.Format on the hard-coded HTML String to generate HTML string of the table.
To me this approach is a bit like a workaround and I was never a fan of hard-coding values. In addition, code with a lot of hard-coded value end up as hardly maintainable code...read more
24
Feb
2018
Multiple file upload with ASP.NET WebApi
.NET229 titlesUpload 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
16
Mar
2017
Serialize html form to JSON without using JQuery
JavaScript31 titlesTransform user input from HTML form fields to JSON
0
jQuery makes things a lot easir when working with DOM. So many thing there out of the b and you do not need to worry about browsr compatibility.
Browser compatibility used to be a big deal few years back, but not it all comes to almost one engine which is WebKit.
...read more
28
Apr
2016
Create XML/HTML with T-SQL
SQL/T-SQL10 titlesGenerating XML/HTML output in SQL Server
0
Sending email from SQL is not a difficult to achieve, but generating rich HTML content might be. SQL Server itself is not built as a text processor, first approach would be to build HTML by simple concatenating the string elements.
This approach will work, but over time it will become more and more difficult to maintain especially if you need to add layout elements over time.
...read more
17
Jan
2016
Copy text value to clipboard using jQuery
JavaScript31 titlesSimple sample of using jQuery to copy value to clipboard
0
I recently needed to copy some value from the web UI to clients clipboard. Since this is not something you often need to use, I googled a little bit and found that this is easy to do with document.execCommand...read more
14
Oct
2015
Reduce the number of request from the page by using base64 in CSS
JavaScript31 titlesEmbedding images in CSS as base64 strings
0
One of the major things that affects your page performance is the number of requests made from your page. Any external resource included on the page page makes your page loads slower.
Most commonly these are images...read more
30
Jul
2015
Delayed execution in JavaScript
JavaScript31 titlesThread sleep equivalent in JavaScript
0
Not very often, but from time to time you need to slow down your code. Most of the time the reason for that is that you need to test some long execution, mostly external source call...read more
02
Jun
2015
Disabling browser UI effects from CSS
JavaScript31 titlesRemoving browser added effects on the form elements in HTML
0
New version of browsers are bringing a lots of useful features, but among them there are some features that can actually ruin your UI concept. The following are just some of the most common ones and instructions how to disable them.
Disable textarea rezise
...read more
14
Apr
2015
Scraping website content using HtmlAgilityPack
.NET229 titlesBuild you own website crawsler for extracting data from websites
0
HTML is a markup language same as XML, but still there are differences which make dealing with them a bit different. Basically HTML is a strict structure in terms of node sets and attribute sets, but in general more documents online are not exactly following the proper structure since browsers usually manage to deal with rendering out the document in UI...read more
30
Mar
2015
Recognize links in text content with jQuery
JavaScript31 titlesFind and replace URLs with anchor tags inside the text
0
Very often when you are dealing with content from 3rd party like tweets from Twitter of Facebook posts and comments you might end up with some URL inside the content.
On both Twitter or Facebook or any other social network, links inside text comments are replaces with anchor tags to those URLs. In order to keep the same user experience and make it more useful o your side where you are serving the content from the other party it is recommended that you do the same.
...read more
03
Mar
2015
The ways of loading JavaScript files onto your page
JavaScript31 titlesVarios ways to load the script on the page and boos performances
0
Recently I was working on speeding up my website. As a reference I user Google PageSpeed Insights.
There were few things, but among them was one that was that really poked my eyes...read more
30
Dec
2014
Facebook Album Browser JQuery Plugin
JavaScript31 titlesSimple Facebook public albums browser plugin for JQuery
0
Reponsive jQuery plugin for browsing public albums of a Facebook account. Plugin is suitable for both desktop and mobile websites....read more
19
Nov
2014
Generating HTML structure string in C#
.NET229 titlesClean and proper way to generate html string in C#
0
String hardcoding it the worst way to generate your HTML. It makes code non-maintainable and hard to read.
Lately in June I wrote an article how to generate HTML string without hard coding the string and using concatenation or string format...read more
.NET
5
Jun
2022
Using dotnet nuget package vulnerability scan in Azure DevOps build
Listing nuget vulnerabilities and controlling build in Azure DevOps
5
May
2022
Protecting static files in ASP.NET Core using custom middleware
Restricting access to specific static content with middleware in ASP.NET Core
20
Dec
2021
Supporting multiple authentication schemes in asp.net core webapi
Using more than one authentication schemes in webapi projects
12
Dec
2021
Controlling the flow of migrations in EF Core
Altering EF Core migrations execution order
28
Nov
2021
Unit of work pattern with Dapper
Implementing unit of work pattern with Dapper in .NET 5
21
Sep
2021
Adding display name to Enum values
Implementing additional values for Enum items in C#
JavaScript
28
Oct
2018
HTML5 localStorage with expiry with vanilla JavaScript
Using HTML5 localStorage with expiry
8
May
2018
Monitoring DOM changes with JavaScript
Handling DOM changes with plain JavaScript
9
May
2017
Non blocking CSS load on the page
Load external CSS files in an async manner
16
Mar
2017
Serialize html form to JSON without using JQuery
Transform user input from HTML form fields to JSON
17
Jan
2016
Copy text value to clipboard using jQuery
Simple sample of using jQuery to copy value to clipboard
11
Jan
2016
Resize image on the client side with JQuery
Reducing the upload sie by resizing image on the client side
SQL/T-SQL
22
Feb
2022
Select column names with values from SQL Server database
Fetching column names with its value in T-SQL using built in JSON methods
23
May
2020
Identifying opened connections for the specific application in SQL Server
Connection listing queries in SQL Server
3
May
2018
Reading JSON data in T-SQL on SQL Server
Extracting values from JSON string on SQL Server using T-SQL
28
Apr
2016
Create XML/HTML with T-SQL
Generating XML/HTML output in SQL Server
24
Nov
2015
IP address to octets split in TSQL
Split IP addresse into octets in SQL Server
20
Jul
2015
Getting first and last second of the current year, month and day
Using minimum and maximum date time in SQL query
Umbraco CMS
2
Mar
2018
Minify HTML output of your pages
Minification of HTML output using ASP.NET IHttpModule
18
Apr
2015
Generate sitemap.xml on the fly in Umbraco CMS
Simple sitemap.xml Umbraco handler
2
Mar
2015
Accessing UmbracoHelper in HttpHandler request
Working with UmbracoHelper and IPublishedContent in HttpHandler
14
Sep
2014
Same page language switching in Umbraco
Land on the same page in different language in Umbraco using Relations
4
Sep
2014
Getting cropped image the smart way
The way to get cropped image URL with option to load original image too
27
Aug
2014
Fastest way to return JSON result from a controller
Resturn JSON in MVC controller action