Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hallo,

currently I have the problem, that as soon as I click a button (I have a sub handling the Click-Event) contents of some elements are deleted. Why is that and how can I handle that?
I do for example have a File Uploader and a Textfield. This is what happens as soon as my button is clicked. If I select a file and click the button the file is no longer selected

VB
Try
f_1.Text = btn_file.FileName.Replace(".pdf", "")
Catch ex As Exception

End Try
Posted
Comments
kiran dangar 31-Oct-11 6:30am    
Hi, please explain what you are trying to achieve... question is confusing..
chris085 31-Oct-11 7:18am    
Hi, I want to copy&paste the file name into the textbox. However, as soon as I click the button (that triggers this), the file name is pasted into the textbox but the file is no longer selected in the File Upload Element and I wonder why.
saini arun 1-Nov-11 2:19am    
This is how the file upload element behaves. Check the links provided in my answer below.
Anuja Pawar Indore 1-Nov-11 2:28am    
Is your file upload button placed inside update panel?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900