[C#] 纯文本查看 复制代码 string username = this.TextBox1.Text.Trim();
string pswd = this.TextBox2.Text.Trim();
if (username == ""|| pswd=="")
{
[color=#000][backcolor=rgb(254, 254, 242)][font=Verdana, Arial, Helvetica, sans-serif][size=13px]Response.Write[/size][/font][/backcolor][/color]("用户名或者密码为空,请重新输入!");
}
if (username == "wangbo" && pswd == "123")
{
Response.Redirect("http://www.guge.com");
}
else
{
[color=#000][backcolor=rgb(254, 254, 242)][font=Verdana, Arial, Helvetica, sans-serif][size=13px]Response.Write[/size][/font][/backcolor][/color]("登录失败!");
} |