Duy Anh Pham's Page

How to disable "View Report" button in sql reporting services ( in web page) - ẩn nút "View Report" trong sql reporting services

, ,

you can't disable "View Report" button in sql reporting services by C#. "View Report" button is Created by JavaScript in web page. So We can disable "View Report" button by JavaScript.

Step 1:

include code behind in your site

<script language="javascript">
        function HideButtonVR() {
           
            window.document.getElementById("ctl00_MainContentRight_ReportViewer1_ctl00_ctl00").style.visibility = "hidden";
          
        }
    </script>


Note:
+ "ctl00_MainContentRight_ReportViewer1_ctl00_ctl00" is "View Report" button's ID
+ You can get "View Report" button's ID by using addon FireBug in FireFox


Step 2:


add function HideButtonVR() into onload event in BODY
<body onload="HideButtonVR();" > 


to be continue ....

lỗi 'Framework' is not a member of 'DotNetNuke.UI.Skins.Controls.DotNetNuke' trong DNN 5.6.2 về việc chuyển Blog

Write a comment

New comments have been disabled for this post.