Uri myUri = new Uri("http://www.example.com?param1=good¶m2=bad");
string param1 = HttpUtility.ParseQueryString(myUri.Query).Get("param1");
You would use Querystrings.
I.E your URL should be formatted as follows:
[URL][?][Key=value]
If you are adding multiple parameters then separate with [&] then your next [key=value]
So:
Here is your URL with 2 parameters, ID and Name:
AttendanceExcelReport.aspx?id=1&name=Report
You can access these by just calling
Request("id") in VB and Request["id"] in c#
Request("name") in VB and Request["name"] in c#