Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - ASP.NET DataList control call rdlc Reportviewer report

 
Thread Tools Search this Thread
Old 11-06-2009, 12:36 AM   #1
Default ASP.NET DataList control call rdlc Reportviewer report


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


Sharon
  Reply With Quote
Old 11-06-2009, 08:34 AM   #2
Alexey Smirnov
 
Posts: n/a
Default Re: ASP.NET DataList control call rdlc Reportviewer report
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...command.asp x


Alexey Smirnov
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
vb .net web page error before page_Init with IE6 BoogieWithStu22@gmail.com Computer Support 97 02-21-2007 06:00 PM
displaying only current month dates asp.net calendar control prasanthamohan Software 0 07-18-2006 07:43 AM
Port Assignment- OT in a Small Way Tracker Computer Security 21 09-07-2003 08:09 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46