Hi
Please add this button colum in your gridview
<Columns>
<asp:TemplateField HeaderText="CurriculumID" HeaderStyle-ForeColor="White">
<ItemTemplate>
<asp:Button ID="lblemployee_id" runat="server" CausesValidation="True"
PostBackUrl='<%#"WebPageName.aspx?EmployeeID=" + HttpUtility.UrlEncode(Eval("employee_id").ToString())%>' Text="Employee ID></asp:Button>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</Columns>
When you click the button it will get your ID and pass it to your WebPageName.aspx of your choice.
Now Below will be the back code of your WebPageName.aspx
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["EmployeeID"] != null && !string.IsNullOrEmpty(Request.QueryString["EmployeeID"].ToString()))
{
Session["EmployeeID"] = Request.QueryString["EmployeeID"].ToString();
MessageBox.Show(Session["EmployeeID"].String(),"");
}
}
Hope it helps...