Try this code in server side of CustomValidator
protected void CustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
{
if (IsValid)
{
int maxSize = 5 * 1024 * 1024;
if (FileUpload1.PostedFile.ContentLength > maxSize)
{
args.IsValid = false;
}
}
}
Good Luck
Friday, October 31, 2008
Wednesday, October 29, 2008
Automatically change text to Uppercase
Try this with textbox in page Load
TextBox1.Attributes.Add("onblur", "this.value=this.value.toUpperCase();");
Good Luck
TextBox1.Attributes.Add("onblur", "this.value=this.value.toUpperCase();");
Good Luck
Subscribe to:
Posts (Atom)

