日期:2014-05-16  浏览次数:20340 次

Jquery easyui message没有弹出
大大们好,又来求教了。

整体工程是asp.net的,使用了jquery easyui这个jquery包。
现在碰到一个一问题,在dataGrid中添加的按钮里面的提示信息可以正常弹出来,但是asp.net的服务端控件直接调用javascript的脚本的时候,提示信息却没有弹出。
dataGrid的:

 $(function () {
            var qParams = { mode:'Qry', id: $("#txtid").val(), name: $("#txtname").val() }; //取得查詢參數
            var oldRowIndex;
            var opt = $('#grid');
            opt.datagrid({
                width: "auto", //自動寬度
                height: 320,  //固定高度
                nowrap: false, //不截斷內文
                striped: true,  //列背景切換
                fitColumns: true,  //自動適應欄寬
                singleSelect: true,  //單選列
                queryParams: qParams,  //參數
                url: 'CRUDHandler.ashx',  //資料處理頁
                idField: 'id',  //主索引
                frozenColumns: [[{ field: 'ck', checkbox: true}]], //顯示核取方塊
                pageList: [10, 15, 20], //每頁顯示筆數清單
                pagination: true, //是否啟用分頁
                rownumbers: true, //是否顯示列數
                toolbar: [{
                    id: 'btnAdd',
                    text: '新增',
                    iconCls: 'icon-add',
                    handler: function () {
                        insertRow($(this));
                    }
                }],
                onClickRow: function (rowIndex) {