| Author: Bharat 14 Jul 2006 | Member Level: Bronze | Rating: Points: 2 |
Hello You could use the HTML input button whose type is of reset
|
| Author: Jes M George 17 Jul 2006 | Member Level: Bronze | Rating: Points: 2 |
i want to reset only the fileupload not the entire form. if i use the html reset button it will reset the entire form.
|
| Author: Er. Ram Singh 03 Mar 2008 | Member Level: Gold | Rating: Points: 2 |
string filename = UPLOAD_STORE_IMAGE.PostedFile.FileName;
string filespecified = filename.Substring(filename.LastIndexOf("\\") + 1); string filepath = "~/Medical_Store/UploadImage" + "/" + filespecified; string imageurl = filename.Substring(filename.LastIndexOf(".")); imageurl = imageurl.ToLower(); string imgtype = UPLOAD_STORE_IMAGE.PostedFile.ContentType; int imglength = (int)UPLOAD_STORE_IMAGE.PostedFile.ContentLength; if ((imageurl != ".jpg") && (imageurl != ".gif") && (imageurl != ".bmp") && (imageurl != "jpg") && (imageurl != "gif") && (imageurl != "bmp")) { Response.Write("this file format is not supported");
}
|