Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want a control which will accept list of different files like .jpeg or .mp3. Now depending on the file type I have to do the following: If it be "abc.jpg" I have to show it as a static image; If it be "adc.mp3" I have to play it automatically. If anybody has any idea with respect to the above mentioned task, it will be great for me.
Posted
Comments
OriginalGriff 11-Jun-13 3:34am    
And?
What have you tried? Where are you stuck?
Ahmed Bensaid 11-Jun-13 5:51am    
You can develop user controls for each of your needs (image, mp3, etc ...). And then, your own control which will load the appropriate user control according to the file extension.

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