Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys, I want to Upload the only textfiles or documents . when click on the FileUpload Button open the only textfiles or .doc or docx files.

VB
<asp:FileUpload ID="FUJobDescription" runat="server" Height="20px"
                                       Width="230px"/>


When click on the "FUJobDescription" control we can getting only .txt or .doc or .docx files from HardDisk.
Please any one help me.
Posted
Updated 1-Nov-12 23:10pm
v5

1 solution

Follow the link below it has both Client and Server side approach:
http://aspalliance.com/1614_Adding_Filter_Action_to_FileUpload_Control_of_ASPNET_20.all[^]
 
Share this answer
 
Comments
Kuthuparakkal 2-Nov-12 3:29am    
Whydownvote, leave comments balls you dare
CH Guravaiah 2-Nov-12 6:02am    
Hi, When clicking on the FileUpload Control then Uploads only Word files not for other Files.

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