dodgerfan
asked on
What is the proper syntax when trying to insert a variable into a stringbuilder statement
I have this C# statement:
BuildSql.AppendFormat("(UPPER(Field1) like '%{0}%' or UPPER(Field2) like '%{0}%' or UPPER(Field3) like '%{0}%')")
I want to replace the {0} with a string variable passed in. What is the proper syntax for that? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER