Archives
-
Adding the "msvalidate.01" tag required by bing to Orchard
In order to validate my ownership for Bing Webmaster Tools, I need to add the tag
<meta name="msvalidate.01" content="CA6A83218C1ED72C9E6EF7298BA5549D" />
to the markup for my homepage.
After a …
-
Using postMessage to implement an inter-frame API
One of the products I work on allows users to host individual web pages inside frames within it. Whilst working on a proof-of-concept a while ago, I stumbled acros the postMessage method which …
-
A standardised warning banner in Orchard
In the posts I've written about creating a certificate authority and SSL certificates for use in a Dev/Test environment (part 1, part 2), I wanted to have a standard banner at the top of them that …
-
Trailing slashes in Orchard
Up until about 20 minutes ago, viewing this blog via http://robertwray.co.uk/blog would work, but viewing it via http://robertwray.co.uk/blog/ wouldn't. Logical, no?
The solution is to add a …
-
Getting a type value from the Request object
A little bit of boiler-plate code I've used in the past for retrieving a value from the asp.net Request object (when working with webform back in the day!) is:
/// <summary>/// Retrieve a value from …
-
A custom model binder for XML content
Most of the time the default model binder in MVC suffices and maps everything into your model cleanly. One thing that you can't do automatically is read XML into an XDocument. You could solve this …
-
Creating your own certificates for development/test environments - Part 2
Part 1 covered creating a Root Certificate and adding it to the Local Machine trusted store, as two discrete steps. That leaves the remaining two steps for this part:
Creating a certificate for …
-
Creating your own certificates for development/test environments - Part 1
So that HTTPS bindings can be configured in IIS in a development/test environment, there are a couple of options:
Use IIS to create a Self-Signed certificate
Create your own root certificate to …
-
Windows Forms marquee style progress bar that doesn't, well, marquee..
If you've got a progress bar where the Style is set to "ProgressBarStyle.Marquee" and the progress bar sits there blank, not scrolling and looking rather sorry for itself, one reason for this is that …
-
"Can't sign in to Skype for Business" - you've got Two Factor Auth setup!
This is as much a reminder to myself as anything else, but,.. If you're using Office 365 and have two factor authentication setup against your account, you'll need to use an "app password" for Skype …