How to Remove Special Characters VB . Net

 Public Function GetStringWithoutSpecialChar(ByVal strtoclean As String) As String
        Return Regex.Replace(strtoclean, "[^\w\\-]", "")
    End Function

Comments

Popular posts from this blog

HOW TO Use the NumericUpDown Control

How To Get IP & Locations details of client machine in asp.net

Get control name in Page_Load event after post back by any control