Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNNTextSuggest - 404 Error
Previous Previous
 
Next Next
New Post 6/13/2007 5:59 PM
User is offline Bruce Chapman
116 posts
www.iFinity.com.au
9th Ranked


DNNTextSuggest - 404 Error  

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)>

 


Do you need a DotNetNuke Developer? and Free DotNetNuke Downloads
 
New Post 6/14/2007 7:19 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: DNNTextSuggest - 404 Error  

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 3:39 PM
User is offline Bruce Chapman
116 posts
www.iFinity.com.au
9th Ranked


Re: DNNTextSuggest - 404 Error  

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


Do you need a DotNetNuke Developer? and Free DotNetNuke Downloads
 
New Post 6/15/2007 6:57 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: DNNTextSuggest - 404 Error  

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 5:17 PM
User is offline Bruce Chapman
116 posts
www.iFinity.com.au
9th Ranked


Re: DNNTextSuggest - 404 Error  

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


Do you need a DotNetNuke Developer? and Free DotNetNuke Downloads
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNNTextSuggest - 404 Error
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP