Passing login Id to the text object in crystal report viewer using c#

I have two web forms. One is a login page
and the other is the main page

Main page uses a crystal report viewer to
display a document

users will log in with user id and password using
forms authentication

1. On the report footer, I want to display the user Id
   on a text object, entered at logon, a time stamp on
   another text object and then on the click of a button
   create a pdf file(pdf file creation is working)  

Is it possible to pass values to this text objects?

Code for pdf creation

protected void Button1_Click(object sender, EventArgs e)
        ReportDocument doc = new ReportDocument();
        Response.Buffer = false;
        string rptFile = "CrystalReport1.rpt";
        string myStudentId = "102346";
        string fileName = Server.MapPath(rptFile);
        doc.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, true, myStudentId);

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I assume the report is working and you just need to know how to pass a value.

This link shows how to do it with a parameter in VB


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SirdotsAuthor Commented:
This gives an idea. It doesnt really show how to create parameter fields in crystal report
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.