Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Using DNN controls with "BlankModule" template
Previous Previous
 
Next Next
New Post 7/19/2006 5:52 AM
User is offline TillmanZ
38 posts
10th Ranked


Using DNN controls with "BlankModule" template 
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 8:27 AM
User is offline TillmanZ
38 posts
10th Ranked


Re: Using DNN controls with "BlankModule" template 
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 9:37 AM
User is offline TillmanZ
38 posts
10th Ranked


Re: Using DNN controls with "BlankModule" template 
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 10:01 AM
User is offline TillmanZ
38 posts
10th Ranked


Re: Using DNN controls with "BlankModule" template 
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 11:38 AM
User is offline Rodney Joyce
1664 posts
www.smart-thinker.com
5th Ranked




Re: Using DNN controls with "BlankModule" template 
Have you asked Vladan this question to see how he handles it? He may know...


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Using DNN controls with "BlankModule" template
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com
BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com
Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP