You're using the Ajax Control Toolkit, and you must disable the extender when the control you're using is not visible.
if (MyExtendedControl.Visible = false) Then
MyExtender.Enabled = false
end if
Hi samyb,
Thanks for the reply. Excuse my lack of understanding but I am new to inserting JavaScript objects via the AJAX GetScriptDescriptors() method. You indicate that this has to be done in the code behind? It isn’t clear to me how I determine what the id’s of MyExtendedControl and MyExtendedControl are in your example. The ClientID is equal to dnn_ctr765_ViewSSCIMediaDataInt. Would dnn_ctr765_ViewSSCIMediaDataInt be "MyExtendedControl"? Me.FindControl(Me.ClientID) results in null or nothing.
Thanks,
G.M.
My JavaScript is inserted from a file called IsAdminScptCntl.js via the following:
Protected Overridable Function GetScriptReferences() As IEnumerable(Of ScriptReference)
Dim reference As ScriptReference = New ScriptReference()
reference.Path = "~/DesktopModules/SSCIMediaDataInt/jsMthds/IsAdminScptCntl.js"
Return New ScriptReference() {reference}
End Function
Protected Overridable Function GetScriptDescriptors() As IEnumerable(Of ScriptDescriptor)
Dim descriptor As ScriptControlDescriptor = New ScriptControlDescriptor("IsAdminScptCntl.IsAdminObj", Me.ClientID)
descriptor.AddProperty("IsAdmin", Me.IsAdmin)
Return New ScriptDescriptor() {descriptor}
End Function