M
Mark
I have some controls on a form bound to a dataset.
When it comes to update time, I manually set up parameters using the
following syntax
command.Parameters.Add("@documenttitle", SqlDbType.VarChar, 200,
"documenttitle")
where the last parameter is the field in the dataset to use. However
if in my textbox control I type something with a single quote in it
such as "O'Neill" how do I escape this to two single quotes before it
goes to the update?
It surely can't be the case that bound controls are no good unless you
prevent users from typing single quotes?
When it comes to update time, I manually set up parameters using the
following syntax
command.Parameters.Add("@documenttitle", SqlDbType.VarChar, 200,
"documenttitle")
where the last parameter is the field in the dataset to use. However
if in my textbox control I type something with a single quote in it
such as "O'Neill" how do I escape this to two single quotes before it
goes to the update?
It surely can't be the case that bound controls are no good unless you
prevent users from typing single quotes?