473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Report Viewer and ObjectDataSource changing in asp.net rdlc

I have a simple report viewer in on one of my web pages and I have a
specific report chosen to view, not a crystal report but the built in
reports that are .rdlc files. I want to be able to send parameters to
this report to change the data shown. I initially want to pull the
report up based on one parameter (Users ID), then give the user the
option to fill in other text boxes on the screen for the rest of the
criteria. So some how i have to be ablet o change the GetData select
method to another select method that handles these parameters. Here
is teh code I used to try and change that but it didnt work. Any help
is appreciated...

ObjectDataSource1.SelectMethod = "GetDataByDateRange";
ObjectDataSource1.SelectParameters.Clear();
ObjectDataSource1.SelectParameters.Add("@BeginDate ",
Convert.ToDateTime(txtBeginDate.Text).ToString());
ObjectDataSource1.SelectParameters.Add("@EndDate",
Convert.ToDateTime(txtEndDate.Text).ToString());
ObjectDataSource1.SelectParameters.Add("@BUMNewTec hID",
Session["ID"].ToString());

ObjectDataSource1.DataBind();
ReportViewer1.DataBind();
Jun 27 '08 #1
0 1421

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Susan H | last post by:
I have Visual Studio 2005, trying to properly bind to a nested object tree. I can bind to the top level object just fine, but can't seem to "hook" my nested object in. I have a ShoppingCart...
7
by: steve | last post by:
Hi All I need to change text in a Report Viewer document at runtime It is just the heading I want to change to match what the user has chosen as the Report to view How do I access the...
7
by: steve | last post by:
Hi All I have created rdlc files and when I load them into Report Viewer at run time they appear OK If I click on 'Print layout' button on Report Viewer the view again appears acceptable ...
5
by: David L. | last post by:
I'm running into a frustrating problem. ASP.NET 2.0 web application, against SQL'05, I'm trying to run a report against a 'table provider' (query) that excutes well within SQL MGT studio, and...
3
by: steve | last post by:
Hi All I have a VB.net 2005 app which uses MS Report Viewer to create reports Occassionally I get the following error when changing to a different report User code running on thread 196 has...
0
by: =?Utf-8?B?QW5nZWw=?= | last post by:
I am using the MS Report Viewer. I created a report (.rdlc) in my website. I set the report up using a datasource. I have the following code: Dim dta As New...
0
jgroos
by: jgroos | last post by:
Here is my scenario: I have two different reports processed LOCALLY, lets say Report1.rdlc and Report2.rdlc. They both are populated with data from a database, and they both also take a list of...
1
by: Larry Bud | last post by:
I have a reportviewer control. I programmatically set the local report path based on a drop down on a page. This allows the user to choose which format (RDLC file) to use when generating the...
0
by: =?Utf-8?B?WmVk?= | last post by:
Good Day, I been looking for a day now and I couldn't find a good source of information. I have a one of a kind report wherein the RDLC file including all controls are programmatically generated...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.