Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reportviewer Remote mode with parameters

Status
Not open for further replies.

sodakotahusker

Programmer
Mar 15, 2001
601
I beat my head against the wall and finally got the reportviewer in ASP.NET to work with a hard coded set of logon credentials. At first glance I had made it to the top of the mountain when I saw my reports displaying. I soon discovered that some of them which needed parameter values just flipped back to a prompt mode. The ones that had default values worked fine - unless I change the default values to something else. The default values are still used in generating the report. Is there a setting somewhere that I can tweak to fix this - enabling viewstate or something? The only other alternative I can think of (and I have not done this so I am only guessing this works) is to prompt for parameters before I invoke the reportviewer control and pass the parameters to the report from the reportpath property. Can anyone save the rest of my hair that survived the security ordeal? Thanks!!
 
For future generations - here is the answer to my problem.
The assignment of the parameters was done in the page load event. It was not checking for postback. If you don't confine the assignment of parameters to the first page load, the same parameters will get assigned again in stead of the ones chosen on the screen by the user.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top