J
Jason Butera
I want to set the datasource to a server control at run-time only
(because the datasource is stored in the web cache). The following
code I thought should do the trick, but Site is ALWAYS nothing.
If Not Me.Site Is Nothing AndAlso Me.Site.DesignMode = False Then
'My Code for run-time only
End If
I tried it in the constructor and onload events. Why is site always
nothing?
(because the datasource is stored in the web cache). The following
code I thought should do the trick, but Site is ALWAYS nothing.
If Not Me.Site Is Nothing AndAlso Me.Site.DesignMode = False Then
'My Code for run-time only
End If
I tried it in the constructor and onload events. Why is site always
nothing?