<!-- file Upload Control -->
<asp:FileUpload ID="fuMainImage" runat="server" />
<!-- Image file validator -->
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server"
ControlToValidate="fuMainImage" ErrorMessage="Invalid Image File (supported file type are .JPEG,
.PNG, .GIF) " ValidationExpression="^([0-9a-zA-Z
:\\-_!@$%^&*()])+(.jpg|.JPG|.jpeg|.JPEG|.png|.PNG|.gif|.GIF)$">
</asp:RegularExpressionValidator>