Click here to Skip to main content
15,921,905 members
Articles / .NET

Ensure extension of file name is of your choice

Rate me:
Please Sign up or sign in to vote.
4.50/5 (4 votes)
24 Mar 2010CPOL 7.4K   4  
There are cases where we want to ensure that the filename entered by the user has a valid extension of your choice, say .XLS, .ZIP. Sometimes user may not enter extension, or may enter wrong extension like .XLA, .ZIL. In such cases, here is a simple tip where we need not check how user enters...

Views

Daily Counts

License

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


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions