Hi!
I´m not so familar to shared, private, public, private subs at all and I´m trying to have a SQL connection on page load where I have two subs of Calendar1_dayrender and Calendar1_selectionChanged.
Both should be able to access the datatable builded in the page load.
Can anyone give me some direction on how to use share a datatable between subs? As for now I get an error when trying to use the dt (Datatable) in the other subs than page load.
My code:
Imports System.Configuration
Imports System.Data
Imports System.Linq
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Data.SqlClient
Partial Class Events_event
Inherits System.Web.UI.Page
Private todo As New DataView()
Shared Sub Page ...
Go to the complete details ...