addthis.update('share', 'url', url);
addthis.update('share', 'title', $("title").text());
addthis.update('share', 'url', url);
addthis.update('share', 'title', $("title").text());
var script = 'http://s7.addthis.com/js/250/addthis_widget.js#domready=1';
if (window.addthis){
window.addthis = null;
}
$.getScript( script );
private static bool IsValidNIF(string nif) { if (string.IsNullOrWhiteSpace(nif) || !Regex.IsMatch(nif, "^[0-9]+$") || nif.Length != 9) return false; char c = nif[0]; //Check first number is (5) apenas empresas //if (!c.Equals('5')) // return false; //Perform CheckDigit calculations int checkDigit = (Convert.ToInt32(c.ToString()) * 9); for (int i = 2; i <= 8; i++) { checkDigit += Convert.ToInt32(nif[i - 1].ToString()) * (10 - i); } checkDigit = 11 - (checkDigit % 11); //if checkDigit is higher than ten set it to zero if (checkDigit >= 10) checkDigit = 0; //Compare checkDigit with the last number of NIF //If equal the NIF is Valid. if (checkDigit.ToString() != nif[8].ToString()) return false; return true; }
<umbraco:Macro ID="Macro1" runat="server" language="cshtml">
.........
</<umbraco>
@Model.MediaById(Model.imagem).umbracoFile
@( Html.Raw(umbraco.library.RenderMacroContent("<?UMBRACO_MACRO macroAlias=\"share\" ></?UMBRACO_MACRO>", Model.Id)))
ImageGen.ashx?image=/imagepathe.jpg&width=480&height=180&align=middle&valign=center&crop=resize