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 ForumsClientAPIClientAPIError 404: Control not foundError 404: Control not found
Previous
 
Next
New Post
1/9/2006 5:48 AM
 
Hi,

I am trying to use the client API in C# (sorry don't do VB - can read most but don't write).

I am trying to create a basic user control (ascx) to drop into a 'SmartDnnModule'. The control is created and displays as expected, and I have finally got a client callback (I think). The problem is that I get an alert 'Error 404: Control not found'.

If I look at the page source in the browser, I can find my control with exactly the same id as in the error message :

'dnn_ctr460_SmartDNNModule__ctl0_Button1'

BUT the control ALSO has a name field (which I am not supplying !!), and which
is different :

<input name="dnn:ctr460:SmartDNNModule:_ctl0:Button1" type="button" id="dnn_ctr460_SmartDNNModule__ctl0_Button1" value="PressMe" onclick="dnn.xmlhttp.doCallBack('Button1 dnn_ctr460_SmartDNNModule__ctl0_Button1','test',successFunc,this,errorFunc,null);" />

I am assuming that the error 404 is coming from the client-side js code ???. If so - why can't it find my control ??. Is it looking for a matching ID or NAME. If name - where is this being created and why is the format different.

Much head-scratching on this one but its probably quite a simple mistake I am making ???.

aspx code is :

<input type="button" runat="server" id="Button1"  value="PressMe" />

and aspx.cs is :

Button1.Attributes.Add("onclick", ClientAPI.GetCallbackEventReference(Button1, "'test'", "successFunc", "this", "errorFunc"));

NB if I replace the first parameter 'Button1' with 'Page' as suggested in the docs - I get a completely
different failure.

Finally - if we can fix this I am more than willing to send the source code as a C# example of a user control with ClientAPI - for those who want one )

Thanks

Regards

Graham

 
New Post
1/9/2006 9:54 AM
 
This error message occurs when the server side code cannot locate the control in the page hierarchy on the callback.  It would be easiest for me to troubleshoot if you email me your installable module, along with the code.

 
New Post
1/9/2006 11:53 AM
 
This is CodeFreak. copy your source code and I'll take a look at it. is this for DNN 4 or a 3x portal.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIError 404: Control not foundError 404: 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