PC Review


Reply
Thread Tools Rate Thread

ASP.NET DataList control call rdlc Reportviewer report

 
 
Sharon
Guest
Posts: n/a
 
      6th Nov 2009
Hello Community

I have an web application and I am using a DataList control. When a row
in the DataList control is selected I want to populate the rdlc Reportviewer
report. Can anyone tell me how I can make the selected row on the DataList
control call the rdlc Reportviewer report?

Thank you in advance
Sharon
 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      6th Nov 2009
On Nov 6, 1:36*am, Sharon <Sha...@discussions.microsoft.com> wrote:
> Hello Community
>
> * * I have an web application and I am using a DataList control. *When a row
> in the DataList control is selected I want to populate the rdlc Reportviewer
> report. *Can anyone tell me how I can make the selected row on the DataList
> control call the rdlc Reportviewer report?
>
> * * Thank you in advance
> * * Sharon


Assign an OnItemCommand handler to

Sub Item_Command(sender As Object, e As DataListCommandEventArgs)

.....

' Get the datakey for selected item
Dim id As Integer = Convert.ToInt32(dlResults.DataKeys
(e.Item.ItemIndex).ToString())

' Get data for the report and attach datasource to a ReportViewer
control
.....

End Sub

See more

Binding Data to the ReportViewer Control Dynamically in ASP.NET 2.0
http://www.aspfree.com/c/a/ASP.NET/B...n-ASPNET-20/1/
DataList.ItemCommand Event
http://msdn.microsoft.com/en-us/libr...emcommand.aspx
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with ReportViewer and RDLC C a r l o s A n t o n i o Microsoft VB .NET 0 20th May 2010 11:32 PM
RDLC files and ReportViewer control Poldie Microsoft VB .NET 0 27th Jul 2009 11:08 PM
Populate reportviewer/rdlc from XML file Fred G. Sanford Microsoft ASP .NET 0 28th Feb 2007 05:35 PM
Barcode in Windows Forms ReportViewer(RDLC report)-PDF & Excel sup =?Utf-8?B?TmVvZHluYW1pYw==?= Microsoft Dot NET Framework Forms 0 25th Nov 2005 02:04 PM
How to add barcode images into ASP.NET ReportViewer - RDLC reports =?Utf-8?B?TmVvZHluYW1pYw==?= Microsoft ASP .NET 1 23rd Nov 2005 01:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:30 AM.