Changing 'Look and Feel' and 'Text' of Browse button which we get from FileUpload Control
-
I want to upload image, for that I'm using FileUpload control. But i want to change look n feel of Browse button. Also I don't want its text as "Browse...", I want its text as "Choose File". I don't want TextBox which we get along with the Browse Button. Can I put Imagae on that? Pls help. Thank You.
-
I want to upload image, for that I'm using FileUpload control. But i want to change look n feel of Browse button. Also I don't want its text as "Browse...", I want its text as "Choose File". I don't want TextBox which we get along with the Browse Button. Can I put Imagae on that? Pls help. Thank You.
You can't do anything to the browse button. You can't change it. You can't use the click() method on it in order to hide it and trigger it from another control. You could try to place an element on top of the button and make it transparent to clicks so that the click ends up on the original button. The upload field looks a bit different in different browsers, though. You should prepare yourself for a lot of tweaking and testing in a wide range of browsers. Also, after deploying this you should test it with every new version of every browser to make sure that it still works...
--- b { font-weight: normal; }
-
You can't do anything to the browse button. You can't change it. You can't use the click() method on it in order to hide it and trigger it from another control. You could try to place an element on top of the button and make it transparent to clicks so that the click ends up on the original button. The upload field looks a bit different in different browsers, though. You should prepare yourself for a lot of tweaking and testing in a wide range of browsers. Also, after deploying this you should test it with every new version of every browser to make sure that it still works...
--- b { font-weight: normal; }