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.0Require assistance in building a simple module with DNNtreeRequire assistance in building a simple module with DNNtree
Previous
 
Next
New Post
8/10/2009 8:27 AM
 

Hi there,

I've searched quite a bit for a tutorial in building a simple module to ultilize the DNNtree.  It doesn't help that I'm still new to using ASP.NET.  I use Visual Studio Web Developer 2008 Express with SQL Server 2005.

I've followed tutorials to create and build simple modules so I'm farmiliar with this process. 

One area I seem to be struggling in is how can I access my SQL connection via the module, I've barely done any database connections in my .NET learning at the moment.  I'm farmiliar with dragging an instance of the <asp:SqlDataSource>, however when I create a datasource on the modules aspx page and tried to assosiate that data source with a tree view it throws a long error, the first line says "DotNetNuke.Services.Exceptions.ModuleLoadException: The 'DataSource' property cannot be set declaratively"

Secondly how can I access my portals navigation based on the users security settings?

I suppose once I successfully fetch the datasource I would need to build a query?  I believe the [Tabs] table holds the pages data?  However I'm not great at SQL queries can anyone help as to how I add a conditional clause to only display what the user is supposed to view?

I think I can work out the rest once I've found the data, I primarily work on front-end development so I need a module which pulls the correct data in which I can style.

We originally had a freelancer who wrote a custom module, the module would populate .NET's TreeView with the child pages of the selected menu, the problem is it pulled all pages regardless of the visibility rights.  So admin pages were visible to everyone as an example.  The Class containing the method that pulled the results from the database was already compiled to a dll file and I'm not sure how to amend the query he wrote.  Besides I figured it would be a nice learning curve to build the simple module from scratch :)

 

Preferably I'd like to do this in C# but I'm happy to work with VB, I just a little less knowledge in writing in VB.

Many thanks,

Chris

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Require assistance in building a simple module with DNNtreeRequire assistance in building a simple module with DNNtree


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