fm4399 2017-11-25 09:42 采纳率: 0%
浏览 1221
已结题

ajax提交数据返回后,gridview中__doPostBack回发失效的问题

我用ajax提交数据后,gridview中模板列的控件__doPostBack回发就失效了,
前台代码:

 $.ajax(
                     {
                         type: 'POST',
                         url: 'xinghao.aspx',
                         //async: false,//异步的话则注释
                         data: { 'strAction': 'dlg', 'bj_cid': DataKeyName, 'Sel': value },
                         success: function (res) {
                             var dvGrid = $(res).find("#dvGrid").html();
                             $("#dvGrid").html(dvGrid);

                         }
                     })

通过html中返回代码

 <table cellspacing="0" cellpadding="4" rules="cols" id="gridXh" style="color:Black;background-color:White;border-color:#DEDFDE;border-width:1px;border-style:None;width:100%;border-collapse:collapse;">
            <tbody><tr style="color:White;background-color:#5D7B9D;border-style:Solid;font-weight:bold;height:20px;">
                <th scope="col">&nbsp;</th><th scope="col">型号</th>
            </tr><tr style="color:#333333;background-color:#F7F6F3;">
                <td class="grid_style" align="center" style="width:2%;">

                                                                        <input id="gridXh_chk_0" type="checkbox" name="gridXh$ctl02$chk">
                                                                    </td><td class="grid_style" ondblclick="javascript:__doPostBack('gridXh$ctl02$ctl00','2')" style="width:10%;cursor:pointer;cursor:hand;">
                                                                        <span id="gridXh_lb_2_0">1×1</span>


                                                                    </td>
            </tr>
        </tbody></table>
  • 写回答

1条回答 默认 最新

  • fm4399 2017-11-25 09:44
    关注

    希望老师们帮忙!!!

    评论

报告相同问题?

悬赏问题

  • ¥20 蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏