Disable ASP.NET Form Button

When providing buttons on a web page, we may wish to show a particular button as ‘greyed out’, signifying that it is more generally available for use, but not for the task we are undertaking. An example of this would be an edit button. If the content we are adding […]

Formatting Datagrid Data Text Two Ways

Data grid output can be formatted differently for the public/normal view and the edit view. In this example both methods are used. Using inline table row editing with a DataGrid I wished to change the formatting according to its state. To illustrate this I have included below an example template […]

Differences Between Form Methods Post and Get

HTML forms may post or get their submission. The method attribute, either post or get, prescribes to the browser how the form data is to be sent back to the server. For reference here’s a typical form declaration, on an HTML page <form action=”contact.php” method=”get”> As shown there is the […]

Changing Login Text Username or Email Address

Having disabled email addresses for WordPress login I wanted to change the text, which was shown. On the login dialogue it was showing Username or Email Address above the first textbox. The mention of Email Address was now wrong and misleading. To do this I added the following to the […]

Add Browser Redirection to ASP.NET File

Perhaps a page was created with a spelling error, or a reorganisation of the website means that a particular page has been renamed. We wish to redirect our visitors to the page to a different address. In the example below its assumed that the website page has moved to www.example.com/fruit-and-veg/. […]

Comparison of Font Sizes

I wanted a comparison between the different pixel and point sizes. I’ve listed the increasing numerical size for each series side-by-side, illustrating how points get progressively larger. In the table below I’ve set the style in the pixel and point columns such that it’ll over-ride the CSS configured elsewhere.   […]

Warning: preg_match(): Compilation failed: two named subpatterns have the same name at offset 75

I was using the ARVE video embedder plugin on WordPress. Observing a page referencing either Vimeo or YouTube I saw the error: Warning: preg_match(): Compilation failed: two named subpatterns have the same name at offset 75 in /wp-content/plugins/advanced-responsive-video-embedder/public/functions-shortcode-filters.php on line 255 Disabling plugins didn’t cure the issue And reverting to […]

htaccess Difference Between Files and FilesMatch

Whilst writing the two recent articles about blocking xml-rpc access and the matching of files in htaccess. .htaccess uses Files and FilesMatch to control access to files. For example for the single file wp-config.php <Files “wp-config.php”> Order Allow, Deny allow from all deny from 192.0.2.52 </Files> There’s also <FilesMatch “\.(gif|jpe?g|png)$”> […]

DotNetNuke Admin Pages

DotNetNuke divides the admin pages for a website into two sections:  common settings and advanced settings. To view the admin options hover over the Section Common Settings covers: Event Viewer – File Management – Page Management – Recycle Bin – Security Roles – Site Settings – User Accounts – Section […]

Blocking xml-rpc Access

I’ve heard that I should disable xml-rpc on a WordPress website. Why should I disable it and how? XML-RPC What is it? And how to Disable. What is xml-rpc? This is the connection for the WordPress API interface. It allows apps such as the WordPress app on an iPhone or […]