forked from ventrian/News-Articles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathucNotAuthenticated.ascx.vb
executable file
·58 lines (35 loc) · 1.35 KB
/
ucNotAuthenticated.ascx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
'
' News Articles for DotNetNuke - http://www.dotnetnuke.com
' Copyright (c) 2002-2007
' by Ventrian ( [email protected] ) ( http://www.ventrian.com )
'
Imports DotNetNuke.Common.Utilities
Imports DotNetNuke.Services.Exceptions
Imports Ventrian.NewsArticles.Base
Namespace Ventrian.NewsArticles
Partial Public Class ucNotAuthenticated
Inherits NewsArticleModuleBase
#Region " Event Handlers "
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
#End Region
#Region " Public Methods "
Protected Function GetLoginUrl() As String
Try
If PortalSettings.LoginTabId <> Null.NullInteger Then
' User Defined Tab
'
Return Page.ResolveUrl("~/Default.aspx?tabid=" & PortalSettings.LoginTabId.ToString)
Else
' Admin Tab
'
Return Page.ResolveUrl("~/Default.aspx?tabid=" & PortalSettings.ActiveTab.TabID & "&ctl=Login")
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
Return ""
End Function
#End Region
End Class
End Namespace