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.0Module Creation Help?Module Creation Help?
Previous
 
Next
New Post
6/18/2007 9:42 AM
 

Hi There,

I have written a small VB.Net application. This solution works perfectly outside of DNN. But, I now want to make this application into a DNN Module.

When I wrote my application I wrote .aspx files with .vb codebehinds. From reading various tutorials I understand that DNN uses .ascx files and not aspx files. So, I have converted all my files to .ascx files and my codebehinds to .ascx.vb files.

I have then created a new directory below DesktopModules, put the ascx and ascx.vb files in there. I have also created the ascx.resx files in there.

I am now stuck. I have no idea what to do about adding a Webreference to Microsoft Mappoint and also what to do with the code I have in my Global.asax file.

Can anyone throw any light on where to add this code and webreference please?

Thanks

Trev


www.taxiroute.co.uk - Get a Fare Price!
 
New Post
6/18/2007 9:53 AM
 

You need to ensure that your .ascx controls inherit from Entities.Modules.PortalModuleBase and create Module definitions for the controls. See this site for assistance:

http://www.adefwebserver.com/DotNetNukeHELP/

This tutorial will walk you through the process:

Super-Simple Module (DAL+)



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
6/19/2007 7:50 AM
 

Hi, Thanks for the reply.

I have now made quite a lot of progress. The application is almost working, *i think*

I have a line of code as so:

 

myFindResultsPointA = ParcelRoute.FindServiceClass.FindAddress(findAddressSpecA)

But, when running the project it pukes with the error:

Public Member 'FindServiceClass' on type 'global_asax not found.

In my standalone project there is a whole load of code in a global.asax.vb file under the App_Code directory. There seems to be a lot of code relating to findservice in there...

For example:

' An instance of the find service class

 

Public ReadOnly Property FindServiceClass() As MapPointService.FindServiceSoapGet

FindServiceClass = findService

 

End Get

 

End Property

Where do i migrate this code to in the dnn module please?

Thanks

Trev

 


www.taxiroute.co.uk - Get a Fare Price!
 
New Post
6/19/2007 8:06 AM
 

That code should probably be placed in the App_code directory of the module you are creating. To make the web service work see:

http://www.dotnetnuke.com/Default.aspx?tabid=825&EntryID=1085



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
6/19/2007 8:36 AM
 

Hi, Thanks for the prompt reply....

I have tried putting a copy of the global.asax.vb from my original project into the following directories:

\App_Code\ParcelRoute
\App_Code\ParcelRoute\App_Code
\DesktopModules\ParcelRoute
\DesktopModules\ParcelRoute\App_Code

It still throws the same error....

Any more thoughts? I'm sure I'm almost there!!

Thanks again

Trev


www.taxiroute.co.uk - Get a Fare Price!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Creation Help?Module Creation Help?


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