Have you had a look at HttpUtility.JavaScriptStringEncode
?
More Related Contents:
- How to get Windows Explorer type look and feel inside my Application? [closed]
- How to return JSON with ASP.NET & jQuery
- ASP.NET jQuery Ajax Calling Code-Behind Method
- System.IndexOutOfRangeException: Cannot find table 0
- Calling JavaScript Function From CodeBehind
- Difference between RegisterStartupScript and RegisterClientScriptBlock?
- Plus sign in query string
- ASP.NET Calling WebMethod with jQuery AJAX “401 (Unauthorized)”
- How to implement real time data for a web page
- Does C# have an equivalent to JavaScript’s encodeURIComponent()?
- Pass C# ASP.NET array to Javascript array
- how to call an ASP.NET c# method using javascript
- Ajax method call
- asp.net: Invalid postback or callback argument
- Printing to a client printer from a web app
- Passing array of strings to webmethod with variable number of arguments using jQuery AJAX
- jQuery Ajax calls to web service seem to be synchronous
- Basic Simple Asp.net + jQuery + JSON example
- C# httpwebrequest and javascript
- Uploading File using Ajax in Asp.Net Core
- Access ASP.NET control from static [WebMethod] (JS ajax call)
- Javascript serialization of DateTime in asp.net is not giving a javascript date object?
- ASP.NET Parse DateTime result from ajax call to javascript date
- Opening a URL in a new tab
- Asp .NET Button – OnClientClick=”return function()” vs OnClientClick=”function()”
- Detect Browser Close on Asp.net
- Document.Ready() is not working after PostBack
- ASP.Net double-click problem
- Error handling when downloading file from ASP.NET Web Handler (.ashx)
- JavaScript: Alert.Show(message) From ASP.NET Code-behind