1
我用的ScriptManager在我的ASP.NET页面,并要添加的ScriptReference这是这样一个页面请求:添加一个动态的ScriptReference这是一个页面请求的ScriptManager
var id = 10;
tsm.CompositeScript.Scripts.Add(new ScriptReference("~/Response.aspx?action=test&id=" + id));
,但它会引发错误:
'~/Response.aspx?action=test&id=10' is not a valid virtual path.
我应该动态添加此脚本,我该怎么做?
谢谢我删除了它。 – 2009-10-25 11:16:12