-
Notifications
You must be signed in to change notification settings - Fork 4
/
EditTags.ascx.vb
executable file
·81 lines (51 loc) · 2.25 KB
/
EditTags.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
'
' Simple Gallery for DotNetNuke - http://www.dotnetnuke.com
' Copyright (c) 2002-2007
' by Ventrian ( [email protected] ) ( http://www.ventrian.com )
'
Imports DotNetNuke.Common
Imports DotNetNuke.Common.Utilities
Imports DotNetNuke.Services.Exceptions
Imports DotNetNuke.Services.Localization
Imports Ventrian.SimpleGallery.Entities
Namespace Ventrian.SimpleGallery
Partial Public Class EditTags
Inherits SimpleGalleryBase
#Region " Private Methods "
Private Sub BindCrumbs()
ucGalleryMenu.AddCrumb(Localization.GetString("AllAlbums", LocalResourceFile), NavigateURL())
ucGalleryMenu.AddCrumb(Localization.GetString("EditTags", LocalResourceFile), EditUrl("EditTags"))
End Sub
Private Sub BindTags()
Dim objTagController As New TagController
Localization.LocalizeDataGrid(grdTags, Me.LocalResourceFile)
grdTags.DataSource = objTagController.List(Me.ModuleId, Null.NullInteger, Null.NullInteger, False)
grdTags.DataBind()
If (grdTags.Items.Count > 0) Then
grdTags.Visible = True
lblNoTags.Visible = False
Else
grdTags.Visible = False
lblNoTags.Visible = True
lblNoTags.Text = Localization.GetString("NoTagsMessage.Text", LocalResourceFile)
End If
End Sub
#End Region
#Region " Event Handlers "
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
BindCrumbs()
BindTags()
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Private Sub cmdAddTag_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAddTag.Click
Response.Redirect(EditUrl("EditTag"), True)
End Sub
Private Sub cmdReturnToGallery_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdReturnToGallery.Click
Response.Redirect(NavigateURL(), True)
End Sub
#End Region
End Class
End Namespace