I am receiving the following error when trying to replace spaces with %.
"String cannot be of zero length. Parameter name: oldvalue"
Code:
Dim Keywords As String = "test abc"
Dim sqlkeywords As String
sqlkeywords = Keywords.Replace("", "%")
I have also tryed sqlkeywords = Replace(Keywords, "", "%")
and it just returns the original.... test abc.
What am I doing wrong????
"String cannot be of zero length. Parameter name: oldvalue"
Code:
Dim Keywords As String = "test abc"
Dim sqlkeywords As String
sqlkeywords = Keywords.Replace("", "%")
I have also tryed sqlkeywords = Replace(Keywords, "", "%")
and it just returns the original.... test abc.
What am I doing wrong????