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.0Using DNN controls with "BlankModule" templateUsing DNN controls with "BlankModule" template
Previous
 
Next
New Post
7/19/2006 7:52 AM
 
Hi there!

When trying to use DNN usercontrols in my module which is based on the "blankmodule" template by Vladan (from vladan.strigo.net) I run into show-stopping errors.
The register tags seem to be non-working even though I have corrected the path information from ~\controls\... to ..\..\controls
When switched to design view VS2005 still complains about the "~\" path even though that has been changed by me (or at least that's how it looks like).
I have then tried the "hardcore" way of copying the entire controls dir to my "blankmodule" dir. Then at least the designer wouldn't show any errors anymore. Nevertheless the properties are still not shown and in source view all the dnn user controls (namely Label and TextEditor) still have the red line underneath telling me that they are unknown. Needless to say that intellisense on those controls doesn't work either.

So what am I doing wrong?
How can I make use of dnn controls in my module?

Best regards,

Tillman
 
New Post
7/19/2006 10:27 AM
 
I do have add that I am aware of the WSP/WAP problems and I also have seen numerous other posts where people are having the same issues with dnn userconrols.
In one thread "Using Web Application Projects with DNN 4.x" it seems as if the problem went away by changing the designer.vb declarations of those controls to DotNetNuke.UI.UserControls.LabelControl for example.
This does not solve my problem however.
a) the Tag definition will not work when I use:
<%@ Register TagPrefix="dnn" TagName="Label" Src="../../controls/labelcontrol.ascx" %>
Even though VS doesn't complain about the path, when switching to design view I will get an error saying that it cannot render the control because it cannot find the file "~/controls/labelcontrol.ascx" - why does VS even search in ~/controls?
b) if I copy the entire controls dir to my module dir root then ~/ obviously works but nevertheless the controls are not properly rendered and in source view they still show up as "unknown". Also I can't use the design interface to change any properties of those controls.

Am I the only one not seeing the solution here?
As it appears there are many of you out there working with VS2005 and creating custom modules and I simply cannot believe that noone else is using DNN controls. So apparently there must be a way somewhere!

Anyone enlighten me!
 
New Post
7/19/2006 11:37 AM
 
Well even though it's a little strange but after I simply closed VS and reopened my solution I was able to get rid of the "~/controls/..." problem. Now VS still tells me that it cannot find "../../controls/labelcontrol.ascx" in source view but in design view it looks ok.
Now also the controls don't appear as "unknown" anymore.

But now when I successfully compile the module and try to view it in DNN I will get an exception stating that my "ViewProduct" class cannot be displayed because it is not extending the System.Web.UI.UserControl - WTF?

Maybe it's because of the summer hear all over Europe but I am beginning to think that I have two left hands since everyone else on here doesn't seem to have problems with this.

Thanks for your support!

 
New Post
7/19/2006 12:01 PM
 
It seems to have something to do with this:

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ViewProduct.ascx.vb" Inherits="BlankModule.ViewProduct" %>

This is my ViewProduct.ascx.vb

----- Code follows ------

Namespace BlankModule

Partial Public Class Product
        Inherits DotNetNuke.Entities.Modules.PortalModuleBase

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Try



            Catch ex As Exception
                ProcessModuleLoadException(Me, ex)

            End Try

        End Sub

    End Class

End Namespace


---- End of Code -----

So PRETTY please - anyone there to the rescue?
 
New Post
7/19/2006 1:38 PM
 
Have you asked Vladan this question to see how he handles it? He may know...


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using DNN controls with "BlankModule" templateUsing DNN controls with "BlankModule" template


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