I have this code that gets the fields from the database
SqlCommand gories = new SqlCommand("sp_writs", oCottoNwsCateies);
NewsCategories.CommandType = CommandType.StoredProcedure;
SqlDataReader rdrNewsCategories = NewsCategories.ExecuteReader();
so this code is fine.
but I have a coloum in the database caled write which I want to compare to a string called dontwrite
so I want to do is
if write is"page" and page is not equal to dont write then insert otherwise ignore