这个可以用你的代码(写个函数)解决啊,不用什么专业的书!呵呵呵!
下面是简单的例子!web的!
Public Function InspectPage(ByRef UPage As Page) As Boolean ', ByVal UID As Integer, ByVal UState As Integer)
Dim UID As Integer = CInt(UPage.Session("UID"))
Dim UState As Integer = CInt(UPage.Session("UState"))
If UID = 0 Or UState = 0 Then
UPage.RegisterStartupScript("page", "<script>top.location.href='../StartPage.htm';</script>")
Return False
Else
Return True
End If
End Function
下面是简单的例子!web的!
Public Function InspectPage(ByRef UPage As Page) As Boolean ', ByVal UID As Integer, ByVal UState As Integer)
Dim UID As Integer = CInt(UPage.Session("UID"))
Dim UState As Integer = CInt(UPage.Session("UState"))
If UID = 0 Or UState = 0 Then
UPage.RegisterStartupScript("page", "<script>top.location.href='../StartPage.htm';</script>")
Return False
Else
Return True
End If
End Function
解决方案 »
- .asp页面跳转到.aspx的相关问题
- 我的工作流程是否正确?(关于系统功能扩展)
- Access Insert 语法错误!!!!!!!!
- fckeditor的.NET版使用--初级入门问题
- 希望得到帮助~~~~~~~~~~~!!!!!!!!!!!!!!!
- .net 除法问题
- 请问放在App_Themes的css样式如何才不同时加载?
- 哪位大虾知道aspnet(window账号)的密码?
- 哪有vs.net2003下载??
- 求水晶报表PUSH模式的使用方法,http://www.aspcn.com/News/show.aspx?id=476[飞刀作品]这篇文章中提到的,我做后,有错误,提示如下...
- 怎样用ASP实现一个树菜单
- 有那位大侠知道asp.net不能调试的问题出在哪里?
服务器,这样服务器就可以识别你是谁。
建议参考wrox出版社的<<asp.net高级编程>>的相关章节。
<authentication mode="Forms">
<forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
**********************************************************
在代碼中加
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(strUserInfo[0],false);
搞掂!
以上是asp.net常用的用法
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(strUserInfo[0],false);
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(用戶名,false);
http://expert.csdn.net/Expert/topic/1316/1316977.xml?temp=9.313601E-02