I'm building a simple site using .NET Web Forms and a .mdb
database as the data source.
The problem is: I have a working backsite trough which I can create, modify and delete a new page.
While I can create and delete, the editing feature doesn't work.
I realized the problem might be in the query since the code is working fine for the other features.
Here is the query:
UPDATE pages
SET title=\"" + pa.title + "\" content =\"" + pa.content + "\"
WHERE id=" + pa.id
I'm not very fond of SQL, am I doing something wrong?
Thank you in advance
Edit N°2. At the moment, the query is not working correctly, basically, some of the content and titles have apostrophes in them, and when i update that particular page it won't update. I tried using Regex.Escape but it creates a mess adding tons of \.