in ASP.NET, how to you remove special characters from a filename before saving?

I have an asp.net form on a website that allows users to upload files and then it saves them on my server. It uses one of the fields (the users name) as a prefix to the filename. I need to know how to remove any special characters from the prefix before saving it so that it does not throw an error. Eg, if someone entered their name as "Jon / (aka jonny boi)" the forward slash would cause problems. all help greatly apreciated! :)
 
Back
Top