-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThumbnailModuleBase.vb
More file actions
39 lines (32 loc) · 1.33 KB
/
ThumbnailModuleBase.vb
File metadata and controls
39 lines (32 loc) · 1.33 KB
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
' Copyright (c) 2016 Veloxcore.com
' All rights reserved.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
' DEALINGS IN THE SOFTWARE.
'
Imports DotNetNuke.Entities.Modules
' <summary>
' This base class can be used to define custom properties for multiple controls.
' An example module, DNNSimpleArticle (http://dnnsimplearticle.codeplex.com) uses this for an ArticleId
'
' Because the class inherits from PortalModuleBase, properties like ModuleId, TabId, UserId, and others,
' are accessible to your module's controls (that inherity from ThumbnailModuleBase
'
' </summary>
Public Class ThumbnailModuleBase
Inherits PortalModuleBase
Public Property ThumbnaiID As Integer
Get
Dim qs = Request.QueryString("tid")
If qs IsNot Nothing Then
Return Convert.ToInt32(qs)
End If
Return -1
End Get
Set(value As Integer)
End Set
End Property
End Class