<script type="text/javascript"> $(function() { $('#<%=flulayout.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."); document.getElementById('<%=flulayout.ClientID%>').value = ""; flulayout.focus(); } }) }) </script>
blur
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)