If i understand you correctly you need to implement IReportServerCredentials, here is an example ive used in the past
using System;
using System.Configuration;
using System.Web;
using Microsoft.Reporting.WebForms;
using System.Security.Principal;
using System.Net;
[Serializable]
public sealed class ReportServerNetworkCredentials : IReportServerCredentials
{
#region IReportServerCredentials Members
private string username, password;
public ReportServerNetworkCredentials(string username, string password)
{
this.username = username;
this.password = password;
}
public bool GetFormsCredentials(out System.Net.Cookie authCookie, out string userName, out string password, out string authority)
{
//throw new NotImplementedException();
userName = password = authority = null;
// The cookie name is specified in the <forms> element in Web.config (.ASPXAUTH by default)
HttpCookie cookie = HttpContext.Current.Request.Cookies[".ASPXAUTH"];
if (cookie == null)
{
authCookie = null;
return false;
}
Cookie netCookie = new Cookie(cookie.Name, cookie.Value);
if (cookie.Domain == null)
{
netCookie.Domain = HttpContext.Current.Request.ServerVariables["SERVER_NAME"].ToUpper();
}
netCookie.Expires = cookie.Expires;
netCookie.Path = cookie.Path;
netCookie.Secure = cookie.Secure;
authCookie = netCookie;
return true;
}
public WindowsIdentity ImpersonationUser
{
get
{
return null;
}
}
public System.Net.ICredentials NetworkCredentials
{
get
{
return new System.Net.NetworkCredential(this.username, this.password);
}
}
#endregion
}
And then on the aspx page with the report viewer pass in your credentials etc
ReportViewer1.ServerReport.ReportServerCredentials = new ReportServerNetworkCredentials(username, password);
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://youreportserver/ReportServer");
ReportViewer1.ServerReport.ReportPath = reportPath;
//etc
This will allow you to pass whatever username and pass you like. This works on SSRS 08 / SQL 08 and id imagine 05 too, this is using forms auth.
Hope this helps and that i understood your question properly.
Edit - The code formating is a bit screwed in the first code block, hope you get the jist!