コード例 #1
0
    protected void LinkButton10_Click(object sender, EventArgs e)
    {
        // Response.Redirect("adminlogin.aspx");
        int i = DUPLICATEBL.chkempty();


        if (i == 1)
        {
            int j = DUPLICATEBL.chkverfied();
            if (j == 1)
            {
                int k = DUPLICATEBL.chkuser();

                if (k < 1)
                {
                    lbllogin.Text = "Enter Administrator's userid password for accessing data";
                }
                popup.Show();
                txtuser.Text = " ";
                txtuser.Focus();
            }
            else
            {
                jscall1("First Verify Data");
            }
        }
        else
        {
            jscall1("No data for uploading first prepare it");
        }
    }
コード例 #2
0
    protected void Button2_Click(object sender, EventArgs e)
    {
        int i = DUPLICATEBL.chkempty();

        if (i == 1)
        {
            int j = DUPLICATEBL.chkverfied();
            if (j != 1)
            {
                popup.Show();
            }
            else
            {
                jscall("Data is already verified");
            }
        }
        else
        {
            jscall("No Data For cancellation");
        }
        //DUPLICATEBL.clearall();
        //jscall("Data Cleared. Again Prepare Data");
    }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Label obj_lbl = Master.FindControl("lbltitle") as Label;

        obj_lbl.Text = "Verify Data";
        int cnt = DUPLICATEBL.chkverfied();

        if (cnt != 1)
        {
            int location = DUPLICATEBL.getlocation();
            lnklocation.Text = location.ToString();

            int parameter = DUPLICATEBL.getparameter();
            lnkparameter.Text = parameter.ToString();

            DataTable msngdt = DUPLICATEBL.getmisng();

            gridview1.DataSource = msngdt;
            gridview1.DataBind();
        }
        else
        {
            lnklocation.Text     = "0";
            lnkparameter.Text    = "0";
            gridview1.DataSource = null;
            gridview1.DataBind();
        }
        if (!IsPostBack)
        {
            if (Session["uname"] != null || Session["password"] != null)
            {
                //  txtfromdt.Focus();
                int cnt1 = updatedatadesc.getcount();
                if (cnt1 == 0)
                {
                    LinkButton1.Visible = false;
                }
                else
                {
                    LinkButton2.Visible     = true;
                    LinkButton2.Text        = "Please update description first";
                    LinkButton2.PostBackUrl = "updatedesclist.aspx";
                    jscall1("update description first");
                }
            }
            else if (Session["uname"] == null || Session["password"] == null)
            {
                Response.Redirect("adminlogin.aspx");
            }
        }


        if (Session["clr"] != null)
        {
            string clr = Session["clr"].ToString();
            if (clr == "1")
            {
                Session["clr"] = null;
                jscall("Data Cleared. Again Prepare Data");
            }
            else if (clr == "2")
            {
                cnt            = DUPLICATEBL.chkverfied();
                Session["clr"] = null;
                if (cnt > 0)
                {
                    jscall("Data verified successfully");
                }
            }
        }
    }