I have a asp fileupload control which works okay on IE8 but now it is making the textbox clickable as well and function same as browse button.
<asp:FileUpload runat="server" ID="id" CssClass="" onchange=""/>
I have a asp fileupload control which works okay on IE8 but now it is making the textbox clickable as well and function same as browse button.
<asp:FileUpload runat="server" ID="id" CssClass="" onchange=""/>
FileUpload
controls translates into HTML's input
with type="file"
control, and what you are experiencing is the default behaviour.
If for some reason you want to disable it then you can do:
$(document).ready(function () {
$("#<%= id.ClientID %>").click(function (e) {
e.preventDefault();
});
});
(the above code taken/modified from this answer)