asp.net 窗口登陆验证,后跳转的问题

来源:百度知道 编辑:UC知道 时间:2024/05/14 07:31:05
<script runat="server">
Sub button1_Click( byval sender as system.object,byval e as system.eventargs )handles button1.click
if ((txtusername.text="123") and _
(txtpassword.text="456")) then
(在这里跳转,语句怎么写
我以前写的是:formsauthentication.redirectfrompage(txtusername.text,persistentcookie.checked)
但是提示错误;
编译器错误信息: BC30456: “redirectfrompage”不是“System.Web.Security.FormsAuthentication”的成员。


else
label1.text="错了"
end if
End Sub
</script>

大家帮忙啊?

说实话 没看懂你的代码=。=
你是不是要做登陆验证?错误的跳转页面?
从数据库查 返回真或假 然后Server.Transfer("xxxx.aspx");就能跳转过去
也能传参