protected void LinkButton1_Click(object sender, EventArgs e)
    {
        int        count = 0;
        logic      l     = new logic();
        LinkButton view  = (LinkButton)sender;
        string     id    = view.ID.Substring(4);

        for (int i = 0; i < n; i++)
        {
            if (string.Compare(id, i.ToString()) == 0)
            {
                Session["profileid"] = seekid[i];
                Session["pname"]     = fname[i];
                Session["pcontact"]  = contact[i];
                Session["pdegree"]   = degree[i];
                Session["pcourse"]   = course[i];
                Session["pfreshex"]  = freshex[i];
                Session["year"]      = year[i];
                Session["resume"]    = resume[i];
                Session["resurl"]    = resurl[i];
                count++;
                l.userid   = Convert.ToInt32(Session["eid"]);
                l.usertype = Convert.ToInt32(Session["profileid"]);
                int flag = l.fetchcount();
                if (flag == 1)
                {
                    l.userid   = Convert.ToInt32(Session["eid"]);
                    l.usertype = Convert.ToInt32(Session["profileid"]);
                    l.jobcount = count;
                    l.ins_tblvis();
                }
                else
                {
                    int count1 = Convert.ToInt32(Session["count"]);
                    count      = count1 + count;
                    l.userid   = Convert.ToInt32(Session["eid"]);
                    l.jobcount = count;
                    l.usertype = Convert.ToInt32(Session["profileid"]);
                    l.updatevis();
                }
            }
        }
        Response.Redirect("Viewseekerprofile.aspx");
    }