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.0can modules run without dllcan modules run without dll's if code behind files are in place?
Previous
 
Next
New Post
11/7/2006 11:54 PM
 

I was playing around with the UDT project module and trying to put a button on the UserDefinedTable.ascx that would fire a Sub in the UserDefinedTable.ascx.vb page (I placed all of the .vb source files on the site) that exports the rendered datagrid data to an Excel file.  Errors galore!!  Of course it couldn't be that easy...  I tried removing the UDT module related dll's from the site to no avail.  Is it possible to use code behind files for everything and not use dll's?  Or I guess another question would be specifically for this module (UDT)?

Inevitably I have several User Defined Table modules on several pages with different fields/types except for one field/type in common with every User Defined Table.  I need to be able to export (I really could care less of the format as long as I can import it into MS Access) every ROW of EVERY module ...  I thought I would just get rid of the ModuleID parameter of the GetTableData() functions but the Function namespaces/classes pulled from the dll's.  So I pulled the source files down and thought I could do it this way and THEN use the code I found posted by Sameer Lal on aspalliance.com to export the datagrid to excel.  One error after another.. It seems as if the dll's are conflicting namespaces and classes between the code behind files (.vb).

The primary question I have is what takes precedence when both the code behind files and the dll files are there for the framework to compile?

I hope I am not making a fool of myself here but I am fairly new to DNN and this is throwing me for a loop...  Or maybe I was loopy already!!

Thanks for any insight!

Mitch

 
New Post
11/10/2006 7:17 AM
 

Mitch,

I'm unsure of the actual problem you're trying to solve.  The short answer to code behind vs dll is you need the dll.  The code behind file is ignored after compilation and really doesn't even need to be (read shouldn't be) on your server.

That said, it sounds like your real question is around getting data from a grid into excel.  If that's the case, do a forum search on exporting a datagrid to excel.  This has a very active topic numerous times and you'll find several methods that are easy to implement.

Lastly, you said you have several UDT modules on several pages.  Since this is the case, you must have a moduleid.  Removing the moduleid will result in a single instance of your module being used across all page instances.  Generally, it's the moduleid that makes that instance of the module unique.

 

 
New Post
11/10/2006 9:06 AM
 

At risk of complicating things. I need to point out that some modules do run without .dll's and use only the code behind files. This is called the WSP (Web Site Projects) model (see: Setting-up the Development Environment for more information).

For example, the new Survey module uses only code behind files. When you install it it removes the old .dll's to prevent namespace conflicts.

If you attempt to develop a module using the WSP model you will want to first convert the module from needing .dll's using DotNetNuke 4.3.5 Module Upgrade Wizard.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
11/13/2006 1:58 PM
 

I only have VS2003 and VWD express2005 (on separate machines).  Will I have to get VS2005 to create the new DLL's for the UDT desktopmodule customizations I am trying to implement?  I thought I could just make changes to the UDT code behind files and then place them on the site and get rid of the dlls.  (Thought wrong!!!)  Haha!

Thanks for your time!

 
New Post
11/14/2006 4:28 AM
 

Mitch,

please be aware, that thte current version of UDT is  ASP.Net 1.1 verison, developed using VS2003. You need to migrate it to ASP 2.0 in order to make changes, have a look at the upgrade wizard (available from the download page) and the module development guides from Michael Washington.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0can modules run without dllcan modules run without dll's if code behind files are in place?


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