Hi,
When reading a number richtext strings back from a database c# adds
the @ operator to the string, the effect being all the control
characters are ignored and the string cannot be added to a richtextbox.
I'm using a stored procedure to get the data and the data type is
varchar in the database and stored procedure.
Any assistance on suppress c# from adding the @ operator would be much
appreciated. Code shown below:
Thanks
Lee
SqlCommand sqlComm = new SqlCommand();
SqlDataReader sqlData = null;
sqlData = sqlComm.ExecuteReader ();
/ Obtain all the data.
while (sqlData.Read())
{
if (sqlData["Text"] != DBNull.Value)
{
m_text = sqlData["Text"].ToString(); // m_text has @
preceeding the string.
}
}