Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends

i have deployed ssrs report on report server, and i have menu "Go To Report" in my asp.net webpage to redirect to deployed report but when i click on menu first time i was prompted to enter user name and password. a report is working correctly. but i wanted a code to pass credentials automatically to reportserver when user click on menu first time. plz help me
Posted

1 solution

Create ASP.NET page and add ReportViewer control. In page load you can do as below
C#
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
IReportServerCredentials irsc =new CustomReportCredentials("username", "pw", "domain");
ReportViewer1.ServerReport.ReportServerCredentials = irsc;
ReportViewer1.ServerReport.ReportServerUrl = new Uri(url);
ReportViewer1.ServerReport.ReportPath = "/ReportName";
ReportViewer1.ServerReport.Refresh();

In your menu button you can redirect user to this page.
Call SSRS Reports by using C#[^]
 
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