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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN6 serverID of controls DNN6 serverID of controls
Previous
 
Next
New Post
3/6/2012 6:11 AM
 

Hi,

I'm using Artisteer and  lacking any fix from them am trying to mend some skin functionality. For the menu two calls fail:

Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)

and

Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)

I have heard a rumour that this fails because the serverID of these controls have changed in DNN6, so they can not be found. Can anyone help me with the new serverID 's please or how to find them?

Many thanks

Rob

 
New Post
3/8/2012 8:47 PM
 
I 'm having the same issue after upgrading DNN from 5,.5 to 6.1. I am using Artisteer 2.

I was able to go into the \DesktopModules\artmenuso\ArtMenuSO.ascx.vb code page and comment out the 'ProcessModuleLoadException(Me, ex) line 172 .This at least allows the page to load.

I installed the 3.1 version and tested the menu using an updated skin and menu from 3.1 but it also did not work. I ended up with my HMenu, but the VMenu also appeared also. Maybe it was because it was a trial. Don't know but it makes me weary of spending the $130 to upgrade

patrick
 
New Post
3/9/2012 4:25 AM
 

OK so I managed to work this out. I've updated the code in \DesktopModules\ArtMenuSO\ArtMenuSO.ascx.vb to try both DNN5 and DNN6 names for these controls, and bail out gracefully if it can't find them. Below is code to replace the Page_PreRender function. DNN changed the items to hyperlinks instead of linkbuttons.

Hope this helps, Rob

Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender


           Try
                If Not Me.ShowLoginTab Then
                    Me.dnnLogin.Visible = False
                Else
                    If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then
                        REM DNN5                        
                        Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)
                        cmdLogin.Text = String.Format("<span l""></span><span r""></span><span t"">{0}</span>", cmdLogin.Text)
                        cmdLogin.ControlStyle.Reset()
                    ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then
                        REM DNN6
                        Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink)
                        cmdLogin.Text = String.Format("<span l""></span><span r""></span><span t"">{0}</span>", cmdLogin.Text)
                        cmdLogin.ControlStyle.Reset()
                    Else
                        Me.dnnLogin.Visible = False
                    End If

                End If
                If Not Me.ShowUserTab Then
                    Me.dnnUser.Visible = False
                Else
                    If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then
                        REM DNN5
                        Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)
                        cmdRegister.Text = String.Format("<span l""></span><span r""></span><span t"">{0}</span>", cmdRegister.Text)
                        cmdRegister.ControlStyle.Reset()
                    ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then
                        REM DNN6
                        Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink)
                        cmdRegister.Text = String.Format("<span l""></span><span r""></span><span t"">{0}</span>", cmdRegister.Text)
                        cmdRegister.ControlStyle.Reset()
                    Else
                        Me.dnnUser.Visible = False
                    End If

                End If

                If TypeOf (Me.Parent) Is HtmlGenericControl Then
                    If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then
                        CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class")
                    End If
                End If

            Catch ex As Exception
                ProcessModuleLoadException(Me, ex)
            End Try

        End Sub
:

 
New Post
6/21/2012 6:58 PM
 
Thanks Rob.
You solution resolved my issue...
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN6 serverID of controls DNN6 serverID of controls


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