Mitchel's Forums

Subject: DNN and WAP model
Prev Next
You are not authorized to post a reply.

AuthorMessages
hchattawayUser is Offline
New Poster
New Poster
Posts:11

08/06/2008 2:03 PM  

Hello Mitchel

I had asked over on the DNN forum about converting the DNN project to a WAP model... and some one had mentioned that you had done this...

Are there any issues in doing this? Any problems? Biggest benifit?

On another site (www.haacked.com) it was mentioned that the Global.asax file had to be converted to C# if your modules are going to be written in C#. (mine are). Why don't the forms that are under the "Admin" directory have to be in C#? Their code files are all in VB. An example of a WAP DNN project was on the haacked.com site, and it compiled fine with vb code files and my own modules in C#.. The global.asax file was converted to C#. How can that work if they all go into the same dll?

Thanks

Harold

 

 

 

 

 

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

08/06/2008 2:19 PM  
You can convert your modules to WAP, without making ANY changes to the DotNetNuke solution. THe biggest item is that you have to move content from the app_code folder into the middle of your project directory. The biggest hassle is that at times there can be namespace issues as you go to make the conversion, but typically it is not much of an issue.

Personally the best starting point is to create a new WAP project using a template. (I have one on my business site if needed http://www.iowacomputergurus.com). Then you can copy/move files into the project, and start your conversion.

I personally like WAP as it makes Source Control, individual .dll file creation and overall project clutter less severe...but it is personal preference.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
hchattawayUser is Offline
New Poster
New Poster
Posts:11

08/06/2008 2:29 PM  

Hello Mitchel,

Thanks for the quick reply!

Right, so for each module just make that it's own WAP project...

This came about because of a really weird problem I was having getting a LINQ query to work in a website project...

this line:

 grdTickets.DataSource = this.Ticket.Converter.ToDataReader(TicketList.Select(tick => new { tick.ProjectID, tick.PortalID, tick.UserTicketID, tick.DueDate, tick.Description }));   

was always bombing on the "=>" operator.. it could not interpret it! I dropped the same form unchanged into WAP site to test it in that model, and it worked right away. I did not change any USING statements and the references were the same as far as I could tell...very weird and frustrating!

 

So do you just put your modules in their own WAP?

Thanks!

Harold

 

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

08/06/2008 2:47 PM  
Each of my modules is implemented as an individual WAP project. You can see some examples with the source versions of my modules available at http://www.iowacomputergurus.com.

1 Project and 1 Solution for each project! It makes source control nice and easy!

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
hchattawayUser is Offline
New Poster
New Poster
Posts:11

08/06/2008 2:55 PM  

ok, awesome.. nice to confirm this, thanks for your quick help.. wasn't getting as far on the DNN forums with a meaningful response.

 

Harold

 

hchattawayUser is Offline
New Poster
New Poster
Posts:11

08/06/2008 3:36 PM  

One more thing Mitchel...

When the module is compiled, do you use the projects post-build event to copy over the ASPX or ASCX files to the desktopmodules directory in DNN? What might that look like?

 

Thanks

Harold

 

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

08/06/2008 3:40 PM  
I put the project inside of my desktopmodules folder on a local install, I then use post-build to prepare a install package.

See my "Creating semi-automatic builds" blog article.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
StephenUser is Offline
New Poster
New Poster
Posts:2

08/07/2008 9:41 PM  

I'm still having issues with this WAP way of developing modules.

I'm trying to add an objectdatasource to the editxxx.aspx page and because it doesn't know where to get the dnn controls it replaces them with ones it knows about. It regens the designer.cs file and no longer builds because it doesn't know about the dnn controls anymore.

I've found some posts about this and some comments on one of your articles.

See the first comment on this page. http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/179/pageid/92.aspx

That's what i'm getting and I can't get around it. It shouldn't be this hard! Surely there is a way to change the edit page? I wanted to add a grid view or some other way of editing more than one field at a time. The template I have from bitethebullet.uk.co has one data field, and I'd like lots.

thanks,

Stephen

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

08/10/2008 6:38 PM  
I would ensure that all of your files are named correctly.

I get the warnings in Visual Studio all the time, but everything still works 100% for me. I never have any issues with the autogenerated code either.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
You are not authorized to post a reply.



ActiveForums 3.7