I have an edit linkbutton where I click and it brings a pop up dialog with the text to edit. When I edit the text and submit it works fine. but if I include an "Enter/Return" space in editing then I can't edit again. So I would like assistance in this regard. I have a js function I call on the C# side on clicking the edit linkbutton. When I look in the developer dashboard I see the error as Unterminated string constant. But it's not giving me much to work with. I checked the string if they are properly closed with matching quotes etc.

Please help.


Try encoding/escaping the string in JavaScript with escape("your string") before submitting.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.