TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
prathyusha
NA
180
74.9k
fileupload control
Jun 12 2013 4:52 AM
hi here i'm using this script for validate the image file like gif,jpg,
<script type="text/javascript">
$(function() {
$('#<%=PhotoUpload.ClientID %>').change(function() {
var fileExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
if ($.inArray($(this).val().split('.').pop().toLowerCase(), fileExtension) == -1) {
alert("Only '.jpeg','.jpg', '.png', '.gif', '.bmp' formats are allowed.");
}
})
})
</script>
but after displaying alert message when i click ok fileupload control takes that file please help me
Reply
Answers (
2
)
Error while exporting crystal report into pdf.
WindowsApplications Menucontrols