I am trying to upload a file using asp:fileupload
control. But I don't want "No File Chosen" or any other such warning text to be shown when no file is selected.
Only selected file name should be shown.
Asked
Active
Viewed 997 times
0

Suhaib Janjua
- 3,538
- 16
- 59
- 73

Rajan Goswami
- 33
- 1
- 1
- 7
-
Post your code and what you have tried? – Rahul Singh Mar 20 '15 at 06:13
-
uploading is working fine , which is a vb code. I want to hide this "No File Chosen" text.i didn't find any solution till now. – Rajan Goswami Mar 20 '15 at 06:16
-
@RajanGoswami - Can you post the aspx mark-up? – Rahul Singh Mar 20 '15 at 06:19
1 Answers
0
See the code below:-
.bar:after {
content:"Please select a file";
background-color:white;}
assign it to your FileUpload control. The content message will replace the original one. Of course upon file selection you need to remove the message, you can do this for example via jQuery .removeClass (assuming ID of your FileUpload is "foo"):
$('#foo').change(function() {
$(this).removeClass("bar");})
Hope it helps

Nad
- 4,605
- 11
- 71
- 160