This is a classic problem: you want to style your <input type=”file” /> control but the options are kind of limited. The solution is to hide the control and add your own controls, passing any actions from one to the other. With jQuery this can be fairly easily achieved by the following script: $(function () { $(‘input[type=file]’).each(function () { var fileUpload = $(this); var textBox = $(‘<input type=”text” />’); textBox .css(‘width’, fileUpload.width() – 85) .css(‘margin-right’, 5) .prop(‘disabled’, fileUpload.prop(‘disabled’)); var button

ASP.NET (WebForms) has a concept of postbacks. This is not entirely the same a submitting the current form. A LinkButton for example, when clicked, will call a __doPostBack javascript function which was added by ASP.NET. This means that you can’t always subscribe to the ‘submit’ event with jQuery: $(‘form’).on(‘submit’, function() {}); You might want to subscribe to the postback because, just before calling the server, you need to fill some hidden field. At least, that was my case. So, what