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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...codebehind.vb cannot see controls on ascx filecodebehind.vb cannot see controls on ascx file
Previous
 
Next
New Post
4/5/2011 3:07 PM
 
If your typing in the codebhind screen and there is a label id="lblTEST" when you start typing lbl.... it should auto populate all the lbl items on that control but it cannot seem to see anything on that page at all? have NO idea whats wrong because it is working on some other pages just not pages I am working on today. Am I missing something? when it builds there are NO errors however you get the squiggle under the lblTEST.Text saying

name 'lblTEST' is not declared.

Uhg.
 
New Post
4/5/2011 4:37 PM
 
OK... noticed something here.. website is in one large .sln and used the chapter 5 from the book on how to create a module. (Creating a new solution contained within the desktop modules directory) this makes that module ONLY talk to the codebehind files and such WITHIN its own copy of VS. (opening that module solution file) -  (Any changes to the module have to be built there) then the website can run the whole shooting match including the changes to the new module which NOW work as they were built in another running copy of VS. (Hope that was clear) How if possible?? can I take that seperate solution and combine it with the website solution as NOT to keep 2 copies of VS running as it causes a FULL build of the website on EVERY change and its very slow. I think I missed something on the creation of the module but I followed the chap 5 to the T. So suggestions? Is this the way to develop the module before you turn it into a package and then install it the INSTALL way? Something doesnt seem right about that because of all the open VS solutions..

GRIN
 
New Post
4/5/2011 7:20 PM
 
This is from memory so I hope I get it right but this is what I do:

1. Install DNN, I think both the install and source versions have a .sln file, if not use the source, if so use the install (smaller), use IIS and a virtual directory (another lesson if you don't know how) to create a local path like http://localhost/mylocaldnn or whatever you want to call it
2. In VS Create a new project under the DesktopModules directory in the DNN install (c:\intetpub\web\mylocaldnn\DesktopModules\MyNewModule)
3. Open the DNN .sln in VS in the same VS window, it may warn you that it will close the current one, that's fine
4. Right click the DNN solution root/name/whatever and then click Add Existing Solution, point  to your new module solution .sln file and add
-You should now have the main DNN solution open with the new module solution as a "sub" solution in that one
5. Configure your new module solution to put its .dll in the main DNN install bin directory by right clicking the solution and going to Properties and then Build I believe
6. While in the solution properties in the new module solution configure the build operation (F5) to launch the main DNN website, not remembering the exact tab this is on but click through them and you should see some options to launch a particular site or file, you can set it to your IIS Virtual directory you configured in Step 1, something like (http://localhost/mylocaldnn)

Now you can open one instance of VS, open the main DNN .sln and have your custom modules open along with it and be able to build each module independently and run and test as you go. From there once you are satisfied with the module you can use DNN to create the install package for you.

Hope this helps and is what you were looking for.

Good luck!


Josh
 
New Post
4/5/2011 7:49 PM
 
FWIW - and this is only my two cents - unless you expect to be selling your module on snowcovered next week - you may be better to begin your exploration of module development using the WSP (Website Project) development model instead using the WAP path.  

WSP modules are dynamically compiled at runtime by asp.net which does mean all the source code as a rule needs to be there are runtime
WAP modules are pre-compiled into a DLL which does mean all your source code does NOT need to be there at runtime.

Since there is no compiling of module or DNN source code involved and you work with a clean DNN install only build there are no application restarts every time you want to test something because asp.net is instead running in dynamic mode compiling pages on the fly as needed.
This allows you to use rapid development style methodologies to test and explore the DNN api without the overheads of continual compile cycles.

Basically whenever you place a new dll into the asp.net bin folder it forces a restart of the entire application.  Using the WAP module whenever you hit build this occurs.  When you are using WSP development process this does not happen since no new dlls are being built and placed in the bin folder - this leads to a faster development cycle.  

And down the track if/when you do decide you want to package up an module for sale and distribution it is really not that difficult a task to take the code you developed under the WSP model and create a WAP (Web Application Project) based module.  Ultimately all the ascx.vb and ascx files remain the same its just how you manage any component elements that change slightly.

There is a very good article on wsp and wap conversions amongst other things here: http://www.codeproject.com/KB/aspnet/...
and here http://www.willstrohl.com/Blog/EntryI....

Both wsp and wap based module function pretty much the same way in DNN for the most part ... there are some exceptions to this rule if you are looking at building providers of any sort which really do need to be based around the WAP model - though having said that - even this is not totally cast in stone.

There are some strong arguments for both methodologies - WAP allow better source control and keeps your source code private - but is much more painful to use in a RAD workflow.  WSP means all your source code is included - but the development cycle is ideal for RAD workflows.

Westa


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...codebehind.vb cannot see controls on ascx filecodebehind.vb cannot see controls on ascx file


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