TODO:
Have you ever wanted to validate a page on the client side?
SOLUTION:
if (Page_ClientValidate("vgForgotPassword")) {
//do something
}
NOTES:
If the validation group does not have a name use ""
TODO:
Have you ever wanted to test that a PDF was actually a valid PDF?
SOLUTION:
try
{
reader = new PdfReader("mypdf.pdf");
}
catch (iTextSharp.text.exceptions.InvalidPdfException ex)
{
//do some stuff here, like move to an error folder maybe?
}
NOTES:
You can download iTextSharp from SourceForge.net