[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

msnews.microsoft.com

1/21/2003 10:18:00 PM

I am currently in the process of programming a datagrid that you can update,
delete, and add new records.

Everything works fine. The datagrid will update, delete and let you add new
users to it.

However, if the datagrid is updated or a new record is added with an
apostrophe (O'Brien instead of OBrien), I get a javascript error when the
binddata() function is called to bind the data and reload the datagrid with
the new or updated data. The javascript error that pops up is that a
parenthesis is expected. Once you click through the javascript error, then
the datagrid shows up with the updated or added data, including the
apostrophe.

How can I get rid of that javascript error? What am I doing wrong that the
javascript error shows up?

I've tried using the replace function, both when entering the data into the
database and when displaying the data on the datagrid. I still get the same
javascript error.

Any ideas on how to fix this would be greatly appreciated, as I am at a loss
and very frustrated.

Thanks!