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...how to add button in DNNhow to add button in DNN
Previous
 
Next
New Post
8/2/2010 5:09 AM
 
Hi,
   I am Ganesh  I am new to DNN and i got project on DNN so pleace help me hoe to add button in DNN.

                    Thanks
 
New Post
8/2/2010 2:23 PM
 
We are going to need a lot more information to be able to help you.

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
8/2/2010 5:12 PM
 
1) Log into your DNN Web Site using the HOST account
2) from the Host menu, select 'Module Definitions'
3) on the Module Definitions page, pull down the Actions menu (the little down arrow icon) and select "Create New Module"
4) Select "New" from the "Create Module From" drop down list
5) For the module folder, click "Add Folder", enter "AButton", then click "Create Folder"
6) Select your language, for this example, I will select C#
7) Enter "AButton.ascx" as the FileName, and "AButton" as the Module name
8) If you want, check the checkbox to create a Test Page, in this example, I will check the check box
9) Click on "Create Module"

You will now see your new AButton module on a Test Page

10) Pull down the Action menu (still the little down arrow icon)
11) Select "View Source"
12) For File, select "User Control", you will see your module's source
13) delete everything from the opening h1 tag to the closing p tag
14) replace it with

<input type='button' value='click me'>

15) Click "Update Source"

Now, you'll be back at your Test page.  Your module will be there and you have just added a button to DNN :)
 
New Post
8/3/2010 2:35 AM
 
Thanks for reply
    I not find "opening h1 tag to closing p tag" in user control source.
   please,help me for this
 
New Post
8/3/2010 7:23 AM
 
When you add your new module to a page, and "View Source', you should see the following ... delete everything that I have highlighted in green

<%@ Control Language="C#" ClassName="AButton" Inherits="DotNetNuke.Entities.Modules.PortalModuleBase" %>
<h1>Congratulations</h1>
<p>You have successfully created your module.  
You can edit the source of the module control by selecting 
the View Source Action from the Action Menu.</p>
<script runat="server">
 
</script>

Then add the button code, so your Source looks like this...


<%@ Control Language="C#" ClassName="AButton" Inherits="DotNetNuke.Entities.Modules.PortalModuleBase" %>
<input type='button' value='click me'>
<script runat="server">
 
</script>
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...how to add button in DNNhow to add button in DNN


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