コード例 #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 LinkButton3_Click(object sender, EventArgs e)
    {
        int j = DUPLICATEBL.chktruncate();

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

            if (k < 1)
            {
                lbllogin.Text = "Enter Administrator's userid password for accessing data";
            }
            //  popup.Show();
            Div1.Visible        = true;
            truncatediv.Visible = false;
            pnltruncate.Height  = 130;
            Panel1.Visible      = true;

            paneltruncate.Visible = false;
            truncatepopup.Show();
            TextBox1.Focus();
        }
        else
        {
            jscall("Database is already empty");
        }
    }