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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNNNode is not DefinedDNNNode is not Defined
Previous
 
Next
New Post
9/21/2009 8:39 AM
 

 Hi Trevor,

I'm not really much of an authority on the WebControls, so hopefully someone else will chime in here (you might consider starting another thread if this doesn't happen).

I looked at the HTTP requests to see what was going on, and the ClientAPI is looking for a control with name MyDNNTextSuggest and clientId "dnn_ctr2885_ViewTaxiRouteSearchDemo_ViewTaxiRouteSearchDemo_MyDNNTextSuggest".  A non-ClientAPI request to the page does indicate that the control is being instantiated.  The 404 result code is indicating that the Globals.FindControlRecursive call in DotNetNuke.WebUtilities (not the one in DotNetNuke.Common.Globals) is failing for some reason.

If I were in your shoes, I would attach a debugger and investigate why the DotNetNuke.WebUtilities.Globals.FindControlRecursive call is failing.  Are you mucking with the IDs in any way during postback? 

Also, please at a minimum use PortalSecurity.InputFilter(strText, FilterFlag.NoSQL) on your SQL statement construction.  You are at risk for an injection attack here.  I would advise against ad-hoc query construction in this manner entirely.

Hope this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
9/21/2009 9:00 AM
 

If you are dynamically adding your module to the page try setting the CallbackType property to ProcessPage.  For more info see this thread

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/76/threadid/234196/scope/posts/Default.aspx

 


 
New Post
9/21/2009 9:36 AM
 

Hi Both,

Thanks for the feedback.

Im really not doind anything that clever here. *I think*

I have not messed with any ids and I am not adding the DNNTextSuggest module dynamically.

I get the feeling this might be a DNN problem.

Im at a loss what to do now really.

Should i try that CallbackType anyway?

Trev

 


www.taxiroute.co.uk - Get a Fare Price!
 
New Post
9/21/2009 2:35 PM
 

again, sorry to reply to my own post but this i just dont understand....

without ANY code changes sometimes it works and sometimes it doesnt.

ok, ive written code that doesnt work before and managed to get to the bottom of it...

BUT, this code works sometimes and not others. WTF?

please help - i need to get this working. i need to add 1050 search options to the search box.

Any input would be much appreciated!

Thanks

Trev


www.taxiroute.co.uk - Get a Fare Price!
 
New Post
9/21/2009 8:27 PM
 

Mr. Henning is THE ClientAPI guy, so he's the one you'll want to listen to in resolving this issue.

That said, until he is able to assist further, do you have a development environment where you can reproduce the issue?  My previous comment stands -- it is likely that the DotNetNuke.WebUtilities.Globals.FindControlRecrusive method is failing, either because of an issue on  your end or with the ClientAPI itself.  If you can attach a debugger and investigate why this is occurring, you'll be that much closer to resolving which of the two cases is in play here.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNNNode is not DefinedDNNNode is not Defined


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