Hi!
I use ScriptManager in my ASP.NET page, and want to add a ScriptReference which is a page request like this:
var id = 10;
tsm.CompositeScript.Scripts.Add(new ScriptReference("~/Response.aspx?action=test&id=" + id));
but it raises an error:
'~/Response.aspx?action=test&id=10' is not a valid virtual path.
I should add this script dynamically, what should I do?