Imports MonoSoftware.Web.Scheduler
Public Class
SchedulerExample1
Inherits
System.Web.UI.Page
#Region
" Web Form Designer Generated Code "
'This call is
required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents Scheduler1 As
MonoSoftware.Web.Scheduler.Scheduler
'NOTE: The
following placeholder declaration is required by the Web Form Designer.
'Do not delete or
move it.
Private
designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN:
This method call is required by the Web Form Designer
'Do not
modify it using the code editor.
InitializeComponent()
End Sub
#End
Region
Private Sub Page_Load(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user
code to initialize the page here
'Set initial
scheduler properties
With
Scheduler1
'the
ConnectionStringKey property defines a key necessary for reading connection
string from web.config file (In cases where connection string is defined for
the whole web application in the <configuration><appSettings>
portion of web.config file)
'By default, its
value is set to "connectionString" and it needs to be set if a
different key is used
'.ConnectionStringKey="..."
'The
ConnectionString property is needed only if connection string is not defined
through the web.config file
'.ConnectionString="..."
'Set the
name of SQL table where Scheduler's events are contained
.EventsTableName =
"SchedulerExampleEvents"
'This
property must allways be set, because every event must record its author
.CurrentUserID = CLng(5)
'Set day
interval
.DayStartsAt = 8
.DayEndsAt = 22
'Some
elements' appearances have to be set through properties, most of them a set
through css
.HourCellInnerHeight = 48
End With
End Sub
End Class