How do I create a module for DotNetNuke v6 in Visual Studio 2010 which connects to a database, without using a DataSource control ?
I am a beginner in DotNetNuke and I want to fully understand how to create modules. I have referred Google and I found two links which I think are good, but I need a simple example that includes better comments and connects to the database without using a DataSource control.
Creating a DotNetNuke® Module - For Absolute Beginners!
Creating a Super-Fast and Super-Easy DotNetNuke® Module - for Absolute Beginners!
I welcome you to dotnetnuke, indeed it is a great CMS respectively the greatest CMS made with ASP.NET
I would suggest you basic module development video
And you can go through dotnetnuke official video training library clicking here
Please also have a look at dotnetnuke blog posts, I would suggest to go through Steve Fabians blog you might have a look at Peter Donker and Chris Hammond blogs too.
Last but not least you can have a look at unlimited resources for dotnetnuke at
dnncreative.com
Related
I am a mid-level c#/.Net developer. I was asked to create a Dotnetnuke module. In your opinion, what is the best way to learn how to create modules? Is there a site/video/tutorial that is more beneficial than most? I will be using Dotnetnuke 8.**.
UPDATE
Since opinion based questions are not allowed then please just list places to learn how to create dotnetnuke modules.
My opinion may be slightly biased....
http://www.christoc.com/Tutorials/DNN8-Tutorials
Use my free Visual Studio project templates http://cjh.am/dnntemplates
Setup your local development environment as instructed in the videos (using http://dnndev.me/)
I have an account at http://www.dnncreative.com/ that has helped me a lot!!
We believe that developing in DNN has a few requirements you must adhere to, to ensure you're ready for the future. These requirements include:
avoid any kind of webforms-specific mechanism, as they are end of life and have been for quite a while now
use Razor for server side templating and JS for most logic - this ensure you're on current technologies and ready for .net core
use webapi for actions / data / state change
You can do this manually with a lot of plumbing using MVC modules, or do it 10x faster using 2sxc (check 2sxc.org).
Love from Switzerland,
Daniel
I am working on a project which contains the question with options and solution of that question. I want to display the Mats equations and some coding questions on webpage. So my query is what will the the procedure to insert those equation into Database and display it on my webpage.
for the reference I want to display like this following link :
http://www.indiabix.com/aptitude/compound-interest/
http://www.indiabix.com/c-programming/functions/
Thanks
Frankly speaking as far as I understood your problem you do not have Idea about coding (I may be wrong but as you are not suggesting any particular database and any technical stuff I'm assuming this.)
You can use prebuilt frameworks for this job you don't need to design application from scratch unless it is your some project.
Some suggested Links are this ...
Moodle
WordPress
You need to find plugin after installing these frameworks on your webserver bundle
For that you can use
WAMP on windows or LAMP if on Linux
But Again your question too general. Give some inputs first
Information About Moodle:
IF you go throught moodle webiste you will get to know that how powerful LMS( learning management system ).
You just need to know how to configure such websites
Go through this video tutorials if you want to
Infromation About WordPress:
Wordpress is general purpose Website so you can develop any service with it very easily and everything including database is taken care by it (same case with moodle but moodle is more focused on LMS )
You have to search for LMS plugin inside wordpress for your purpose.
KINDLY ACCEPT THIS ONE AS ANsWER if you find information usefule... (Points help me contribute more and allows me also to ask question)
I am Currently working on DNN based website. I want to add new table for my custom module to keep record of login and registration info of profile. For that does anyone knows which fields are required for any table in DNN? I want to use database which I assigned at DNN installation. And how to retrieve data from table which I have created?
You should really go through the Module Development wiki for DNN, the Task Manager series will do you wonders for understanding DNN (ignore that it says it is for DNN5, it will work just fine for DNN7 as well)
http://www.dnnsoftware.com/wiki/page/module-development
There are no "fields" required by DNN when you add a table, as a developer you can choose what you want included.
Chris handled the table requirements, here is a little about accessing the database...
Using DAL2 to access your database in DNN is really easy. It helps you connect to the database and preform the CRUD operations. Follow the MyObject.cs and MyObjectRepository.cs model and you should be good to go.
for older dnn versions http://www.codeproject.com/Articles/12853/Creating-a-DotNetNuke-Module-For-Absolute-Beginner
Please check http://christoctemplate.codeplex.com/ for dnn 7+ module development
Besides Chris Hammond's tutorials and module template (IMHO, some of the best contributions ever to the DNN developer community), there are a couple of other extremely good tools to add to your DNN developer toolbox.
Mitchel Sellers' Professional DotNetNuke Module Programming book (http://www.amazon.com/Professional-DotNetNuke-Programming-Mitchel-Sellers/dp/0470171162)
Scott Wilkinson's series of tutorials on DNN Module Development DNN Hero. (www.dnnhero.com)
Note that neither of these are free, but are well worth having!
Agree with all above but for a quick example of how to use PetaPoco for your DAL, see this answer: https://stackoverflow.com/a/35749594/4574668
I'm looking for a beginner level video tutorial to get me up to the level where I can create a CMS site.
I have found a lot of individual snippets - but nothing that guides you through the whole thing.
An equivalent in web or PDF would be a good second choice.
Thanks.
"Getting Started" Guide: Installation, Setup, Adding a blog, Adding a gallery, Customizing the design, Getting the website online
http://users.composite.net/User-Guide/User-Guide
http://users.composite.net/Getting-Started (Videos for beginners)
I too have faced such a problem 1 month back when I first went through Composite c1.
Please check my blog.
http://vishnunadesh.wordpress.com/2013/08/05/getting-started/
I think you have already passed through these pages .
Steps are like this.
First study of installation its simple installation as given in composite then
Then go through creation of page.This can be done by creating page template and page type.
then create a page with this page type. All are listed in starter video.
Then on moving to coding you can find creation of user control, installation of new packages and all
Does anyone know of any simple, concise tutorials for packaging DotNetNuke modules for DotNetNuke 4 and DotNetNuke 5? Preferably something concerning DotNetNuke 5.4, since that's what I'm running.
The examples that I've seen all assume background knowledge, or they are about short-cuts to the existing process. I'm a beginner, so I need the simple basics.
Yeah, it's kind of a nightmare the first time.
I started here: Creating a DotNetNuke® Module - For Absolute Beginners! It's DNN 4.x, so a few of the conventions may have changed, but it will probably be close enough to get you going.
Creating a DNN Module and Understanding DNN Architectural Approach goes into more detail:
I suppose the important concept is: you're writing a WebControl using the MVC pattern. The DNN Module Wizard will create a "view" page for you, and you add code to suit.
there's some good resources here for info on packages:
http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/1140/Packaging-and-protecting-your-DotNetNuke%C2%AE-Module.aspx
by Michael Washington (mentioned above)
http://www.dotnetnuke.com/Development/Forge/ModuleReports/tabid/970/EntryId/453/DotNetNuke-4-3-Starter-Kit-and-Item-Templates.aspx
by Shaun Walker
Simple basics...
When you start with the DNN module template in Visual Studio there's a standard .dnn file there. this file must be modified to include all files needed to run the module (resx, images, dlls, ascx, .sqldataprovider) without any of the sourcecode files (.cs, .vb).
zip all of the files mentioned in the .dnn file up with the dnn file (all files in root of the zip) and submit it to the upload new module page (logged in as Host).
the zip is automatically extracted, the .dnn file is read and all files are placed in the appropriate places.
resources for creating packages:
http://www.codeproject.com/KB/dotnet/DnnModulePackager.aspx
http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/200.aspx
by looking at these you can also further your understanding of package creation.
i'm using 4.9 currently so someone may want to correct me on changes that i'm unaware of.
Google for Michael Washington and / or Mitchel Sellers and they have excellent work on Module Development.
Mark Breen
Ireland
Chris Hammond has recently written two blog posts on dotnetnuke.com about packaging modules, you should really have a look that those, they are super, he tells you how to set up your environment and how to create a C#Template for your modules.
thanks
Mark
A good place to start is use the IFrame module. It's all code behind so no compile needed before deployment. Look in the dnn file to see where the files are copied to.
You might also want to look at https://github.com/dazinator/DnnPackager which is a NuGet package that when added to your module project, automates production of the install zip, and has other features