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/20/2009 9:13 AM
 

Hi,

I am trying to get the DNNTextSuggest box working in a small module i am developing.

I am using a tutorial on this page: http://www.adefwebserver.com/DotNetNukeHELP/DNNTextSuggest/

But for some reason when i build the solution I have 2 errors:

DNNNodeCollection is not defined
DNNNode is not defined.

Can anyone tell me what I have/haven't done please?

Many thanks

Trev


www.taxiroute.co.uk - Get a Fare Price!
 
New Post
9/20/2009 9:53 AM
 

Hi Trevor,

In all likelihood you're missing a project reference to DotNetNuke.WebControls.dll; this assembly is where those two types are located.  Ensure that it is present in your references collection, and, if missing, add it.

Hope this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
9/20/2009 11:53 AM
 

Hi Brandon,

Thanks for the info. Ive got it up and running now.

BUT, for some reason I cannot seem to fix, when i type a character into the textbox i get an error "Message from webpage" - "404 - Control Not Found"#

And then, for some reason, the error disappears and it works for while as expected. Nothing comes up in VS to enable me to debug it.

Always happens when the project is run but sometimes I can get it to disappear - but i cannot work out why

Any thoughts

Thanks

Trev


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

sorry to resond to my own post but i have tested the code and it seems to be a time based problem.

ie. i went for a piss, came back and it worked.....

the code seems to compile fine, run in degug mode with no errors but throw this error in the browser for a few mins..

weird.

anywone seen this behaviour before?

Trev


www.taxiroute.co.uk - Get a Fare Price!
 
New Post
9/21/2009 6:49 AM
 

Hi,

Does anyone have any idea what could be causing this please?

I have now uploaded it to another server and the error "404 - Control Not Found" is occuring on this site as well.

My dev server is 4.9.5 and the other server is 4.9.0

Please can you take a look at this page and give any suggestions you may have?

http://www.taxiroute.co.uk/Home/Test/tabid/1395/language/en-GB/Default.aspx

As i said above, the strange this is that after a period of about 30 seconds the error seems to disappear and the search box works perfectly. Then it starts erroring again....

Here is the code I have used....

Sub MyDNNTextSuggest_PopulateOnDemand(ByVal source As Object, ByVal e As DotNetNuke.UI.WebControls.DNNTextSuggestEventArgs) Handles MyDNNTextSuggest.PopulateOnDemandEnd SubPrivate Sub PopulateList(ByVal objNodes As DNNNodeCollection, ByVal strText As String)Dim o As DNNNodeDim dt As DataTable = GetData()'strip out troublesome chars for Select below"[", "").Replace("]", "").Replace("'", "''")Me.MyDNNTextSuggest.CaseSensitiveDim drs() As DataRow = dt.Select("name like '%" & strText & "%'")Dim dr As DataRowFor Each dr In drsIf Me.MyDNNTextSuggest.MaxSuggestRows = 0 _OrElse objNodes.Count < (Me.MyDNNTextSuggest.MaxSuggestRows + 1) ThenNew DNNNode(CStr(dr("name")))CStr(dr("id"))End IfNextEnd Sub

Protected

PopulateList(e.Nodes, e.Text)

 

 

 

 

 

 

 

strText = strText.Replace(

dt.CaseSensitive =

 

 

 

 

 

 

o =

o.ID =

objNodes.Add(o)

 

 

 

 

 


www.taxiroute.co.uk - Get a Fare Price!
 
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