Home > Computers and Internet > How to loading meesage for reportviewer inside updatepanel

How to loading meesage for reportviewer inside updatepanel

Whenever u keep report viewer inside update panel.u may not able to see Loading message of report viewer. to solce this issue i try to write code like this
 var prm = Sys.WebForms.PageRequestManager.getInstance();
   prm.add_endRequest(endRequestHandler);

 function endRequestHandler(sender, args)
        {
            if( postBackElement.id == "<%=lnkBtnRun.ClientID%>")
           {
           var loadMesage=document.getElementById("<%=rptVwrReport.ClientID%>"+"_ctl03");
           loadMesage.style.display = "block";
           return;
            }

the above gets executed after every asychronus postback occurs.that is on rendering onto clientside.  here lnkBtnRun is button whch make report to run inmy case u can keep report viewer id  as postbackElement Id..
rptVwrReport is my reportviewer name which i had given in aspx page

_ctl03 is ID of Loading Message of reportviwer…

Loading message ‘s id  is reportviewername_ctl03.since inorder to make my code more genric i tried to write like this ("<%=rptVwrReport.ClientID%>"+"_ctl03");

this is will show loading message upon every asynchronous postback.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: