Please help me, i tried to pass information from detailed view and to another detailed view in another page. I put this code in the first page
protected void ViewRemuneration_Click(object sender, EventArgs e)
{
//Button ViewRemuneration = (Button)sender;
//string sendID = ViewRemuneration.ID;
Response.Redirect("Remuneration.aspx?employeeId=" + DetailsView1.SelectedValue);
}
and to the second page
protected void Page_Load(object sender, EventArgs e)
{
if (null == Session["UserId"])
{
Response.Redirect("login.aspx");
}
string employeeId = Request["employeeId"].ToString();
}
but this second page won't show the id i select at the first detailed view, it only shows the first record in the database. If i pass it to gridview, it will show every record in the database.. please help me,thanks very much