A Few Smaller Changes

I have stopped using AJAX uploaders for images (and other files) everywhere on the site. I was using the one from MS‘s AjaxControlToolkit on about 4 pages, and there were always some problems with it. Now my patience has run out, and I have replaced all of it with <input type=”file” multiple=”multiple” />. This point …

Read More A Few Smaller Changes

How to Remove All HTML Tags Using Regex

See how easily you can remove all formatting (HTML) from a text – just call this method: C#public static string StripTagsRegex(string source) { return Regex.Replace(source, "<.*/?>", string.Empty); } And how does it work? < and > are the boundary characters. . means any character, including digits, and * means that this character must occur at least 0 times. These …

Read More How to Remove All HTML Tags Using Regex

The Best and Simplest Popup Using Only CSS

CSS code: CSS.showonhover .hovertext { display: none;} .showonhover:hover .hovertext {display: inline;} .hovertext {position:absolute;z-index:1000;border:1px solid #ffd971;background-color:#fffdce;padding:11px;width:500px;left: 250px; font-size: 0.75em;} HTML code: XML<span class="showonhover"> <a href="#">…</a> <span class="hovertext">Text shown when hovering over the 3 dots</span> </span> You can try the whole thing… hereText shown when hovering over the 3 dots

Read More The Best and Simplest Popup Using Only CSS