Code Like
In .cs page
string test = "1,2";
System.Web.UI.ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "Script", "OpenCenterWindow(" + test + ");", true);
JavaScript funcation
function OpenCenterWindow(Ids) {
alert(Ids);
}
In above I am getting alert box = 1
I have try with Encrypt and Decrypt But I am getting error like Uncaught SyntaxError: Unexpected token ) OpenCenterWindow(fBqJaxPUucc=);
But I want to 1,2 any solution?