Writing encrypted data to databasehttp://forums.asp.net/t/294592.aspx/1?Writing+encrypted+data+to+databaseSat, 02 Aug 2003 13:22:31 -0400294592294592http://forums.asp.net/p/294592/294592.aspx/1?Writing+encrypted+data+to+databaseWriting encrypted data to database Hi, I have managed to create an encrypted string which I want to write to my database, to mkae sure that this would work I copied the full SQL string with all values out and ran it directly against my access database back end. However when I try to run the code through the asp.net page I get an error: <b>Syntax error in string in query expression </b>and then it shows the encrypted string. The thing I dont understand is that when I ran the same query directly again the database it worked fine but when I try to do it through the asp.net page it goes wrong?? Is there a particular way to write an encrypted string to the database. Any help is appreciated, iMonkey 2003-07-30T14:55:11-04:00298098http://forums.asp.net/p/294592/298098.aspx/1?Re+Writing+encrypted+data+to+databaseRe: Writing encrypted data to database just an update, solved the problem by using properties.... @fieldname in the query string. Thanks, hope it helps someone else 2003-08-02T09:25:11-04:00