current position:Home>Web form login jump to different interfaces

Web form login jump to different interfaces

2022-02-03 02:32:54 CSDN Q & A

        string name = TextBox1.Text;        string pwd = TextBox2.Text;        // Administrator login         // Account password cannot be empty         if (TextBox1.Text==""||TextBox2.Text=="")        {            Response.Write("<script>alert(' Please enter the account password ')</script>");        }        else        {            //TextBox1.Text = "111111";            //TextBox2.Text = "123456";            // Administrator account password             if (TextBox1.Text == "111111" || TextBox2.Text == "123456")            {                // Jump to the window                 Response.Redirect("WebForm3.aspx");             // string aname= Session["Unickname"].ToString();            }            else            {                Response.Write("<script>alert(' Wrong account or password ')</script>");            }        }        bool flag = userinfoBLL.td(name, pwd);        // The user login         if (TextBox1.Text == "" || TextBox2.Text == "")        {            Response.Write("<script>alert(' Please enter the account password ')</script>");        }        else        {            if (flag==true)            {                // Jump to the window                 Response.Redirect("WebForm2.aspx");            }            else            {                Response.Write("<script>alert(' Wrong account or password ')</script>");            }        }

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030232525153.html

Random recommended