禁用ASP.NET报告(.rdlc)的选择 [英] Disable Selection for ASP.NET Report (.rdlc)

查看:112
本文介绍了禁用ASP.NET报告(.rdlc)的选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在网页上有一个报告(.rdlc),我想通过鼠标拖动来禁用对其数据的选择.我在触发事件时使用JavaScript进行了尝试
body onmousedown ="DisableSelection".此事件在页面区域中正常运行,但是当我单击报告区域时,不会触发该事件.

如果有人对我如何禁用报告的选择有任何想法,请plz答复.
提前谢谢.
roohitgandhi@hotmail.com.

hi all

i have a report (.rdlc) on webpage i want to disable selection of its data with mouse drag. I tried it with JavaScript as i fire an event
body onmousedown="DisableSelection". This event is working fine in the page area but the event is not fired when i click on the report Area.

If someone have any idea that how i can disable selection for Report then plz reply..

Thanks in advance.
roohitgandhi@hotmail.com.

推荐答案

尝试使用此脚本
Try to use this script
<script type="text/javascript" language ="javascript" >
        // Internet Explorer:
        if (document.all)
            document.onselectstart =
    function () { return false; };

        // Netscape 4:
        if (document.layers) {
            document.captureEvents(Event.MOUSEDOWN);
            document.onmousedown =
    function (evt) { return false; };
        }

        // Netscape 6:
        document.onmousedown = function () { return false; };


    </script>


我得到了解决方案,我们可以使用Javascript来实现,在页面呈现后获得报表数据的表并禁用它.
I got solution of this, we can do it by Javascript, after page rendered get the table where report data and disable click of it.


这篇关于禁用ASP.NET报告(.rdlc)的选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆