473,799 Members | 3,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SSRS Report Viewer Intercepting Request Object Values

3 New Member
I'm having a problem with a site I'm working on which contains links to Reporting Services reports. The pages are written in HTML and classic ASP. The links to the reports are in the following format:

http://ServerName/ReportServer?Repor...Command=Render

The problem occurs after I open a report from the site. Prior to opening any reports, the forms I've created on the site work fine, but after a report is run, the values sent across by the Post method are no longer sent to the receiving page, which should be processing the values sent to it. If I change the report URL to view the report in Report Manager (http://ServerName/Reports/Pages/Report.aspx?ItemPath=...) the forms do work correctly, however, I don't really want to do it this way because I don't want users to be able to access other reports on the Report Manager.

I've looked around for the past couple of days and have not found anything regarding why this problem would occur. I'm thinking the issue might be due to the fact that the SQL Server and the web server are running on the same machine. I have done this type of development in the past without running into this issue, however, in those other cases, the SQL Server was running on one machine, while the web server was running on another.

My knowledge of what goes on behind the scenes with web pages and the Reporting Services Report Viewer is somewhat limited, so hopefully I'm not asking a very obvious question and hopefully I can comprehend any answers that anyone can supply.

I'm using:

SQL Server 2005
Visual Studio 2005 (for report development)
IIS 5.1
Window XP (SP2)
Dreamweaver MX (for web development)

Any ideas anyone can provider would be appreciated.

Thanks!
Aug 14 '08 #1
13 7369
jhardman
3,406 Recognized Expert Specialist
It's hard to answer this question, since I don't like to mix ASP and other technologies, but I'll try to help. What format are the dead links in?

Jared
Aug 15 '08 #2
BLKeller
3 New Member
Jared,

I appreciate your willingness to help.

After I open a report from the site, any form I attempt to submit no longer passes data to the ASP page that should be processing it. I'm thinking that something the report does is keeping anything from the Request object from getting to the processing page. To verify what was happing, I created a quick test page on my site so that I could test the submit, without actually really sending anything to my database. Here is the test form's HTML code (this is just the form, not the entire page):

Expand|Select|Wrap|Line Numbers
  1.                     <form name="MyTestForm">
  2.                         <p>
  3.                             <label id="lbl_FirstName" for="FirstName">
  4.                                 First Name:
  5.                             </label>
  6.                             <input name="FirstName" value="First Name">
  7.                         </p>
  8.                         <p>
  9.                             <label id="lbl_LastName" for="LastName">
  10.                                 Last Name:
  11.                             </label>
  12.                             <input name="LastName" value="Last Name">
  13.                         </p>
  14.                         <input class="buttons text_c" name="Test_SaveRet" type="button" value="Save & Return" onClick="SubmitForm(this.name,'<%=PageName%>')">
  15.                         <input class="buttons text_c" name="Test_Cancel" type="button" value="Cancel" onClick="SubmitForm(this.name,'<%=PageName%>')">
  16.                     </form>
When a button on the form is clicked, the following JavaScript function is executed:
Expand|Select|Wrap|Line Numbers
  1.         function SubmitForm(ButtonName,PageName) {
  2.             if (ButtonName == "Test_SaveRet") {
  3.                 document.MyTestForm.action = "test_form_process.asp";
  4.                 document.MyTestForm.method = "post";
  5.                 document.MyTestForm.submit();
  6.             }
  7.             else {
  8.                 alert("ButtonName was not defined.");
  9.             }
  10.         }
The function simply submits the form and opens up the "test_form_proc ess.asp" page. The only function the test_form_proce ss page has is to display what is in the request object, which, after a report is opened, turns out to be nothing.

Thanks for any help you can give.

Brenda
Aug 18 '08 #3
jhardman
3,406 Recognized Expert Specialist
OK, I think I have an idea. The request object is only going to be populated on the first page that receives the form submission, all subsequent pages will not have access to them, as if the data was all lost. before you open any kind of report, go to a page that does this:
Expand|Select|Wrap|Line Numbers
  1. for each x in request.form
  2.    session(x) = request.form(x)
  3. next
This puts all of the form data into session-level variables. You can then access them as session("firstN ame") rather than request("firstN ame") on all of your pages. Does this help?

Jared
Aug 18 '08 #4
BLKeller
3 New Member
Jared,

I appreciate your reply and your suggestion. I haven't done much with session variables in the past and I'm not sure exactly how your suggestion would work. The site I'm working on has several forms on different pages. I think a lot of rework would need to be done in order to use the session variables instead of the Request.Form objects.

For now, I have changed my report links to use the Report Manager, instead of the Report Viewer and I think that once I move the site to the production environment, I shouldn't have any problems using the Report Viewer again, since the report server and web server are on two different machines.

I guess I basically wanted to find out if anyone had heard of this situation before where opening an SSRS report from a link on a web page interferes with the Request object submitting values to another page.

Thanks for your help.

Brenda
Aug 19 '08 #5
paul1035
5 New Member
I'm not sure if this issue was ever addressed or solved, but I am having this exact same issue. If it has been solved, I'd love to hear the fix. But one thing I also determined is that this is browser specific as this issue doesn't happen in Firefox or Chrome, it only happens in Internet Explorer (currently using IE8). So if there is any more detail on this issue, I'd love to hear. Thanks!
Apr 22 '10 #6
sp4tech
4 New Member
hi
As you mentioned, you were able to display the SSRS report based on the parameters passed from ASP page. I was trying to replicate your scenario at least when (web and SQL server are on diff machines) but I am not able to create that scenario.
Could you please tell me how did you successfully do it. so that I can move further fo your issue.

thanks
May 3 '10 #7
paul1035
5 New Member
Well first off, my server hosts both the web page and the SQL and the SQL reports. I am using IIS7 and SQL Server 2008 with Reporting Services. We recently upgraded to using Windows Server 2008 with IIS7, as well as using SQL Server 2008. In the past, we used our web application on Windows Server 2003 with SQL Server 2005. In that scenario, there were no issues. We only just started noticing this problem when we starting using IIS7 with SQL 2008. And again, like I said before, it only happens when using Internet Explorer.

And thanks for responding!
May 4 '10 #8
sp4tech
4 New Member
No I am not able to understand that how the classic ASP can pass the parameters to SSRS reports and run the report through classic ASP? If u could publish the code, would be helpful

Did u get my point?
We have one web server and another sql server reporting services.

Regards,
May 4 '10 #9
paul1035
5 New Member
Well I figured out a solution that works for me. I have my web application running on port 80. And from what I've been reading, putting the 2 items on separate servers solves the issues. So I went ahead and changed the SSRS ReportServer to use port 81 and now everything is working fine. So keeping the 2 items separate is the key it seems.
May 5 '10 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
3642
by: Dean Sabella | last post by:
Hi, I was trying to run a crystal report in the .net sample application given at: http://support.crystaldecisions.com/communityCS/FilesAndUpdates/ cppnet_win_subreport_basic.exe.asp (I've reproduced the relevant file below.)
0
2727
by: Henry | last post by:
I have written an ASP/VB.Net application via VS 2003 (Crystal V9) that uses MS Access 2000 as its database. I can export reports that have no linked sub reports for printing. However, I'm unable to export reports that have linked subreports. I receive (a "Missing parameter field current value") on the following statement: Me.crReportDocument.Export() The main report requires 4 parameters. The linked reports do not require any...
0
1986
by: Tumurbaatar S. | last post by:
It's my first project using the Crystal report. I created a report with the report designer and linked it to a web form as: 1. put CrystalReportViewer in my page (its ID: Viewer). 2. put ReportDocument component from Toolbox | Components (its Name: Report) and specified my existing report class (myproject.import.reports.shiporder). 3. in DataBinding of above viewer, I choosed Simple binding and selected my report. 4. on Page_Load event...
2
4775
by: BillCo | last post by:
Does anyone know if it is possible to integrate SQL Server Reporting Services Reports in an ADP? Is there a plugin or anything that can do this? I have a hunch that the Web Viewer Active-X componant wont be up to the job. I've googled it but it seems to be slim pickings! I need to keep this ap as easy to ".NET-ise" as possible, so I'm trying to stay away from Access Reporting - as great as it actually is. Worst case I'll just shell to...
2
9486
by: =?Utf-8?B?R3lhbmVuZHJh?= | last post by:
I am using Ajax control(Update Panel) in my web page(ASP.Net 2.0) and putting Report Viewer(Sql Server Reporting Services 2005) Control in it. When I am displaying any report it is coming ,But Report Viewer Toolbar is not working Ex Print Command Button and if I try to move to next page I am getting error “The source of the report definition has not been specified “ “
0
1601
by: mknoll217 | last post by:
Hello. I have been trying to log onto two databases at run time for a crystal report. I have tried both the crystal report viewer and the report document object viewer. I have no figured out a way to make it possible. The code for the report document object viewer is below (with the server, password and user not included for both databases). It gives me an error saying that it cannot find the employee table (which is in the EmployeeTrack...
0
1248
by: jobs | last post by:
Hi. I've got an asp.net website with ssrs reportviewer. The site works great. If I compile the site as follows: aspnet_compiler -f -u -v the reportviewer stops does not work and gives me this error:
0
6096
by: jobs | last post by:
Re: SSRS report viewer Execution ' ' cannot be found (rsExecutionNotFound) Reserved.ReportViewerWebControl.axd Every now and then, my users get this error while in the Reportviewer. Usually, they have to close the window where the report was rendered and pull it open again. Attempting to open the report again does not work. What is this?
5
8387
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in REPORT.. =Round((Fields!Clicks.Value*100)/Sum(Fields!Clicks_Show.Value, "DataSet1_Get_All_1234567"),2)& "%" With this Expression I'm Getting Reports Percentage(Total) 100%(NO Problem).. But for Some Reports it is Coming >100 or < 100 Total Percentage (ie 105% or...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.