Beispiel #1
0
    protected void submit_Click(object sender, EventArgs e)
    {
        clsregister        obj    = new clsregister();
        clsregistrationprp objprp = new clsregistrationprp();

        objprp.email    = username.Text;
        objprp.password = password.Text;
        Label1.Visible  = true;
        obj.adminlogin(objprp);
        try
        {
            Int32 a = obj.adminlogin(objprp);

            if (a == 1)
            {
                Response.Redirect("next/admin new/index.aspx");
            }
            else
            {
                Label1.Text = "error";
            }
        }
        catch (Exception exp)
        {
            Label1.Text = "INVALID USERNAME PASSWORD";
        }
    }