I have a string structure like this:
string str = "[['<h1>Heading 1</h1><p>Paragraph 1</p><p>Paragraph 2</p><p>Paragraph 3</p>', 31, 32,1],
['<h1>Heading 1</h1><p>Paragraph 1</p><p>Paragraph 2</p><p>Paragraph 3</p>', 34, 35,2]]";
I am trying to pass this string in javascript function but alert is not working. How can I pass this string in JS function. So far I have tried this but it is not working
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "test", "test('" + str + "')", true);
JS
function test(str) {
alert(str);
}