I have a server side variable
string test = "test";
ticks = "['" + test + "']";
I am setting ticks to a hidden field on the page but when I try to get the value in javascript the single quote is breaking the string and all i am getting from it is [.
Is there a way around this?
I am using c# 3.
Thanks
Instead of forming your string manually, use a json parser