Hello everybody!

Updating to an Umbraco site, which is now primarly going to be a blog about useful and interesting software development related things.

Historic articles and software has been kept and more will be added in due course.

View the Archive...

Archive for tag: ASP

UK Postcode Format Validation in ASP

Here is a simple ASP based function that will check a UK postcode to make sure it is in a valid format - it is based on rules from the Government Data Standards Catalogue - The basic rules are...

  • The letters Q, V and X are not used in the first position.
  • The letters I, J and Z are not used in the second position.
  • The only letters to appear in the third position are A, B, C, D, E, F, G, H, J, K, S, T, U and W.
  • The only letters to appear in the fourth position are A, B, E, H, M, N, P, R, V, W, X and Y.
  • The second half of the Postcode is always consistent numeric, alpha, alpha format and the letters C, I, K, M, O and V are never used.

This does only check that the format is valid, it does not know if the actual data is valid, I would be happy to update this script if any public domain reference data could be provided.

Hopefully it will be helpful to somebody!


DccaptchaHere is a simple classic ASP CAPTCHA script, it is just an example on how to use ASPJpeg for a CAPTCHA basic function. (So obviously requires ASPJpeg to be installed on the server)

ASP Form Mail

Here is a simple classic ASP FormMail script, it is just an example on how to use JMail for a basic formail type function, while this version obviously requires Jmail, it can be very easily modified to use any mail component. It has some security features such as only allowing a certain number of recipiants, email domain must exist in an array list and can force certain fields as being required.