Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIControl not found while browsing without loggingControl not found while browsing without logging
Previous
 
Next
New Post
10/17/2006 4:40 PM
 
Using DNN 4.3.2
I'm getting Control not found error in callback response
This happens if I'm not logged in the site.
If I'm logged in, then it works as expected.

Upon digging in the framework code, I found that the ID of my module control is nothing, so the control id never comes in the query string of the request.

Framework Code in ClientAPI.vb

 Public Shared Function GetCallbackEventReference(ByVal objControl As Control, .....) As String

            .....
            Dim strControlID As String = objControl.ID
            .....
Here the objControl.ID is Nothing
If I'm logged in with some user, then its value is the name of the module control, and it works.


Any ideas?

 
New Post
10/18/2006 9:20 AM
 

In order to understand you fully, are you saying you are using the actual module (usercontrol) as the callback handler, or a control found within your module?


 
New Post
10/18/2006 11:19 AM
 
Jon Henning wrote

In order to understand you fully, are you saying you are using the actual module (usercontrol) as the callback handler, or a control found within your module?



I'm using my module user control control as the callback handler not a control in my module

This is simple a straight code, taken directly by following the tutorials. The objective is to fill a second drop down based upon selected value from first drop down without postback.
Here is the relevant code.

 Partial Class MyModuleUserControl
        Inherits Entities.Modules.PortalModuleBase
        Implements Entities.Modules.IActionable
        Implements IClientAPICallbackEventHandler

    Public Function RaiseClientAPICallbackEvent(ByVal eventArgument As String) As String  _
            Implements IClientAPICallbackEventHandler.RaiseClientAPICallbackEvent
        Return "Something"
   End Function

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
        Handles MyBase.Load
        ...
         Me.ddFirst.Attributes.Add("onChange", ClientAPI.GetCallbackEventReference(Me, _
             "dnn.dom.getById('" + Me.ddFirst.ClientID + "').value", _
             "successFunc", _
              "dnn.dom.getById('" + Me.ddSecond.ClientID + "')", _
              "errorFunc"))
            ...    
    End Sub
End Class

If I'm logged in it works as expected and the successFunc executes, which populates the second drop down.
If I'm not logged in, the errorFunc executes and displays 404 Control Not Found error.
 
New Post
10/19/2006 3:28 PM
 
Got a solution.
I've disabled caching for the module and it is working fine.
 
New Post
10/19/2006 5:04 PM
 
Glad to hear you figured out a solution.  (I hadn't had time to investigate it yet.)

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIControl not found while browsing without loggingControl not found while browsing without logging


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out