Click here to Skip to main content
15,921,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Sir,

I want to ask on how to capture/add session in report viewer control (.rdlc) in asp.net c#

eg. Session["ModuleID"]


Many thanks in advance for your help.

God bless
Posted
Updated 8-Jul-12 17:28pm
v2
Comments
Sandeep Mewara 8-Jul-12 23:34pm    
Not clear. It does not make any sense on what adding session in report control viewer mean. It's better you elaborate your scenario and what you are trying to do.

Don't post comments as an answer.

Now, AFAIK, there is no custom label in report viewer control that will display any text (username here) embedded.
If you are talking of showing a username in 'report' (and not report viewer control), then you need to create a parameter in report and pass the value(username) to it at runtime in your code. This parameter can be set to display the assigned value during report viewing.

If you are looking for what I say, this resource should help:
Setting SSRS Report Parameters from ASP.NET C# Code[^]
 
Share this answer
 
Comments
Silver Lightning 9-Jul-12 2:28am    
thank you sir. it helps. God bless. :)
Sandeep Mewara 9-Jul-12 4:29am    
Welcome.
I want to add user name in report viewer control (.rdlc file). I already searched on google but no found yet. So everytime that the user click the report button, the user name also appear in report viewer.
How could I do that sir?
thank you in advance.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900