Search This Blog

Friday, March 18, 2011

Pop up contain in Grid view using linq


LinkButton lnk = (LinkButton)sender;
        int i=Convert.ToInt32(lnk.CommandArgument);
       
        for (int j = 0; j < GridView1.Rows.Count; j++)
        {
            int k =Convert.ToInt32( GridView1.Rows[j].Cells[1].Text);
            if (i == k)
            {
                Label lb = (Label)GridView1.Rows[j].Cells[0].FindControl("Label1");
                var iid = (from a in lo.Tb_Logins
                           where a.Log_Id == Convert.ToInt32(i)
                           select a).Single();
                lb.Text = iid.Pass;
            }
        }


>>R@V!

No comments: