示例#1
0
    protected void Btnapply_Click(object sender, EventArgs e)
    {
        i = i + 1;
        logic l = new logic();

        l.userid = (int)(Session["userid1"]);
        int flag = l.checkjobuser();

        if (flag == 0)
        {
            Response.Write("<script>window.alert('You have already applied for this job')</script>");
        }


        else
        {
            l.jobcount = i;
            l.status   = 1;
            l.field    = lblfield.Text;
            l.userid   = (int)(Session["userid1"]);
            l.compname = lblcname.Text;
            l.loc      = lblloc.Text;
            l.date     = System.DateTime.Now.ToString();
            l.jobinfo();
        }
    }