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 ForumsClientAPIClientAPIDNNTextSuggest - 404 Error DNNTextSuggest - 404 Error
Previous
 
Next
New Post
6/13/2007 7:59 PM
 

I have tried implementing the DNNTextSuggest control on a custom module I am building.   However, I am getting a '404 - control not found' error.

I believe the problem is either related to the control being on a nested user control, or because it is in an EditItemTemplate on a DataList.

I came to this conclusion because I implemented an identical version of the control at the 'base' level of the Module user control, and it works perfectly.

Here's the details:

- control 1 : implemented straight onto the module user control

 

<dnn:DNNTextSuggest id="txtCountryName" runat="server" OnPopulateOnDemand="txtCountryName_PopulateOnDemand"/>

</view org>

This works exactly as expected.

- control 2 : sits on another user control inside an EditItemTemplate of a DataList, which sits on another user control, which sits on the module user control.

ie.

<view org (the module control)>

<ctl:editOrg runat="server">

</view org>

<editOrg>

<data list>

<EditItemTemplate>

<ctl:editAddress>

</EditItemTemplate>

<editAddress>

<

dnn:DNNTextSuggest id="txtCountryName" runat="server" OnPopulateOnDemand="txtCountryName_PopulateOnDemand"/>

</editAddress>

</data list>

</editOrg>

The same information, put another way ->

<viewOrg><ctl:editOrg><asp:datalist><editItemTemplate><ctl:editAddress>
<dnn:dnnTextSuggest>
</ctl:editAdress></editItemTemplate></asp:datalist></ctl:editOrg></viewOrg>

Now the 1st DnnTextEdit control works fine, but the 2nd fails with the 404 error.

Tracing the calls with Fiddler, I get the two different requests:

<control 1 : works OK>

__DNNCAPISCI=txtCountryName dnn_ctr386_ViewOrg_txtCountryName&__DNNCAPISCP=a

<control 2 :fails with 404>

__DNNCAPISCI=txtCountryName dnn_ctr386_ViewOrg_editOrg_dlAddresses_ctl00_ctlEditAddress_txtCountryName&__DNNCAPISCP=a

Now if you do a 'view source' on the page, the two controls are easily found within the generated Html.  But I haven't bothered to step down to the next level of debugging because I've already spent too much time on it.

I'm assuming that because of the need for the 'FindControl' call with a bound datalist event, that the AJAX code can't find the control to show the drop-down part of it, and that's why it fails with a '404 control not found'.    I think that the fact that it is embedded within user controls is actually superfluous - it's the editItemTemplate part that is causing the error.

For my own project, I've dropped the use of the text suggest on the datalist bound controls and replaced it with a normal drop down list, but it would be good if the DNNTextSuggest box could handle this type of scenario, as I imagine it is pretty common in Module coding. 

Comments welcome, in case I am doing something stoopid which is causing the error.

 

<view org (the module control)>

 

 
New Post
6/14/2007 9:19 AM
 

I believe this is a post with the same issue.  This is the sample that demonstrates how it can work.


 
New Post
6/14/2007 5:39 PM
 

Jon

Thanks for your reply.   I didn't find that thread originally - the DNN forum search frustrates me once more! 

I'll patiently wait for a future release where templated controls might be supported.  I've already converted the code to use a drop down list with more intelligent filtering.

regards

Bruce

 
New Post
6/15/2007 8:57 AM
 

I agree the search is difficult.

I think you misunderstood my response.  I pointed to the original thread to give you some more background.  I then pointed you to the solution that is already implemented.  There should be no waiting necessary


 
New Post
6/17/2007 7:17 PM
 

Jon - right you are, sorry about that.  I had a look at the sample after I read and replied to your post.  A case of RTA before replying.

I've changed the layout to use drop down boxes anyway, sadly a result of cross-pacific communication time lag!  However, I'll look at ways at incorporating text suggest into another templated control and see how it goes.

Thanks for your input, much appreciated.

 

-Bruce

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNNTextSuggest - 404 Error DNNTextSuggest - 404 Error


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