1
我设置登录了在C#RedirectFromLoginPage - 资源无法找到错误
if (TextBox1.Text == System.Convert.ToString(row["Username"]) &&
(TextBox2.Text == System.Convert.ToString(row["Password"])))
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, false);
else
Label1.Text = "Invalid Username/Password"; //If incorrect show this label
一旦用户输入正确的细节,我得到一个网页说The resource cannot be found
我的问题是在哪里我设置的页面,它应该重定向到?
到目前为止,我的web.config看起来像这样
<authentication mode="Forms">
<forms>
</forms>
我连接到一个数据库,以获得正确的信息,本节所有作品它只是页面的重定向。