【发布时间】:2013-10-01 22:52:33
【问题描述】:
我想从后面的 C# 代码中调用这个 JQuery 函数,但它不起作用 这是JQuery函数
function showDialog(id, title) {
$(id).dialog({
modal: true, minWidth: 600, title: title
});
$(id).parent().appendTo($("form:first"));
}
这是我使用的代码
ClientScript.RegisterClientScriptBlock(this.GetType(), "myfunction", "$(document).ready(function(){showDialog('#editCustomer','نحديث معلومات عميل');});", true);
但这不行
【问题讨论】:
-
注册clientscript,需要scriptmanager或者ajax toolkit script manager....
标签: javascript jquery c#-4.0 code-behind