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 ForumsClientAPIClientAPIMessage "Control not found"Message "Control not found"
Previous
 
Next
New Post
10/3/2006 10:18 AM
 

Hi,

I'm making my first experiences with the DNN ClientAPI. I followed the ClientAPI tutorial and now I'm getting a strange message through my errorFunc:

failed: 404 - Control Not Found (drpFilesSearchIn)

The call to the callback is started here:

drpFilesSearchIn.Attributes("onChange") = _
ClientAPI.GetCallbackEventReference(Page, "'test'", "successFunc", "this", "errorFunc")

I'm wondering why the API claims not to find "drpFilesSearchIn". In my call I don't make any reference to this control, I just use it to store the reference.

Best regards,
Markus


Markus Hamburger

DeutschNetNuke

 
New Post
10/3/2006 11:17 AM
 

what is drp a drop down?

check the html of the page find out what the id is for the drpfilessearchIn is?

then do drpfilessearchin = page.findcontrol("idname") and put this in your page init.


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
10/3/2006 11:27 AM
 

It seems like you are questioning the error dialog and why it has drpFilesSearchIn in the message.  If that is the case, I would guess it is because in your errorFunc you have formatted the message with it.

 


 
New Post
10/3/2006 11:32 AM
 

Thanks for your help. It seems to work.

However I'm a bit confused as I thought, FindControl won't function in this early state of the page.
Can I avoid manually setting this references by using another object than "this" in the Reference-function call?

Best regards,
Markus


Markus Hamburger

DeutschNetNuke

 
New Post
10/3/2006 11:49 AM
 
Jon Henning wrote

It seems like you are questioning the error dialog and why it has drpFilesSearchIn in the message.  If that is the case, I would guess it is because in your errorFunc you have formatted the message with it.

You are absolutely right. The ID of "drpFilesSearchIn" is added to the message.
However this doesn't explain, why a control (whichever) couldn't be found and why the manual setting of references helps.

Still puzzled, but glad to be able to continue ;-)
Markus


Markus Hamburger

DeutschNetNuke

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIMessage "Control not found"Message "Control not found"


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