Hi,
I'm not a big fan of the built in validation and would rather write my own validation.
I've created a class file called Functions.
vb and set every page in the web app to inherit this class file.
Inherits Functions
And write all of the validation that I can use throughout the app in the Functions.
vb class.
Like this one:
Function StripPath(ByVal Value As String) As String
Value = Replace(Value, "/", "")
Value = Replace(Value, "|", "")
Value = Replace(Value, ">", "")
Value = Replace(Value, "<", "")
Value = Replace(Value, ":", "")
Value = Replace(Value, "*", "")
Value = Replace(Value, "?", "")
Value = Replace(Value, "'", "")
Value = Replace(Value, ",", "")
Value = Replace(Value, """", "")
Value = Replace(Value, "#", "")
Value = Replace(Value, " ", "_")
Return Value
End Function