Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I just installed uComponents under Umbraco 4.11 and I have some problems with the ucomponents.core.dll and the uquery.
I used ucomponents version 3.1.3 and used this code in visual studio:
Dim homepageNode As Node = uQuery.GetCurrentNode()
When I use this, I will get this error:
This is the code I use:
Imports umbraco.presentation.nodeFactoryImports uComponents.CorePublic Class ah_reacties Inherits System.Web.UI.UserControl Dim nodeID As Integer Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try Dim homepageNode As Node = uQuery.GetCurrentNode() nodeID = homepageNode.GetProperty("@id").Value Catch ex As Exception nodeID = "0" End Try txtName.Text = nodeID End Sub
How can I get the current node in the new situation?
Thanks in advance!
Hi Rik,
uQuery was moved into Umbraco Core(and moved to the legacy dll of uComponents), so perhaps changing Imports uComponents.Core to Imports umbraco will fix this ?
HTH,
Hendy
Hi Hendy,
Tnx, your solution works :)
Kind regards, Rik
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
uquery and ucomponents 5.4.1.
Hi,
I just installed uComponents under Umbraco 4.11 and I have some problems with the ucomponents.core.dll and the uquery.
I used ucomponents version 3.1.3 and used this code in visual studio:
Dim homepageNode As Node = uQuery.GetCurrentNode()
When I use this, I will get this error:
Could not load type 'uComponents.Core.uQuery' from assembly 'uComponents.Core, Version=5.4.1.0, Culture=neutral, PublicKeyToken=null'.
This is the code I use:
Imports umbraco.presentation.nodeFactory
Imports uComponents.Core
Public Class ah_reacties
Inherits System.Web.UI.UserControl
Dim nodeID As Integer
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim homepageNode As Node = uQuery.GetCurrentNode()
nodeID = homepageNode.GetProperty("@id").Value
Catch ex As Exception
nodeID = "0"
End Try
txtName.Text = nodeID
End Sub
How can I get the current node in the new situation?
Thanks in advance!
Hi Rik,
uQuery was moved into Umbraco Core(and moved to the legacy dll of uComponents), so perhaps changing Imports uComponents.Core to Imports umbraco will fix this ?
HTH,
Hendy
Hi Hendy,
Tnx, your solution works :)
Kind regards, Rik
is working on a reply...