Thursday, October 17, 2013

What is CDATA tag in JavaScript for?

CDATA stands for (Unparsed) Character Data, and tell XML parser NOT to parse enclosed data (Javascript).




Reference:
Definition from W3C
http://www.w3.org/TR/REC-xml/#dt-cdsection

Wednesday, October 16, 2013

How to valid email address by regular expression in C#

return System.Text.RegularExpressions.Regex.IsMatch(email, @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"); 

How to copy a report in SQL Server Reporting Services from one folder to another?

1. Download to local
2. Upload to another folder