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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumBasic DNN moduleBasic DNN module
Previous
 
Next
New Post
3/12/2013 1:30 AM
 
Hai i'm the fresher in DNN. I have the little problem in this. I'm Developing a module in DNN5. a module has a two files one is settings and another one is view file. a setting file a has a text box.  when i'm submitting update button the text box value are displayed in view file. thanks
 
New Post
3/12/2013 3:41 AM
 
Selvan,

how do you save the text you enter in the settings? The settings control should inherit from ModuleSettingsBase, so you have a method called UpdateSettings() where you can save your value to the ModuleSettings table - this is more or less a key-value-pair table.

In the view control (which should inherit from PortalModuleBase) you can get your setting by something like

base.Settings["key"]

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
3/12/2013 7:40 AM
 

Thank you sir,

And one more doubt. how to inherit one ascx file into another

 
New Post
3/13/2013 5:06 AM
 
Selvan,

use something like

namespace myCompany.DNN.Modules.myModule
{
public partial class myControl : PortalModuleBase
...

in the code-behind.

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
3/13/2013 6:35 AM
 

Thank you sir

View.ascx

<%@ Control language="C#" Inherits="DesktopModules.Admin.Selvan.View" CodeFile="View.ascx.cs" AutoEventWireup="true"%>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>

<asp:label id="lbl_name" runat="server" ControlName="selvan" ResourceKey="selvan" Suffix=":" />

View.ascx.cs

using DesktopModules.Admin.Selvan;

namespace DesktopModules.Admin.Selvan
{
    partial class View : PortalModuleBase
    {   

        protected void Page_Load(System.Object sender, System.EventArgs e)
        {

        }
        
}
}

Settings.ascx

<%@ Control Language="C#" AutoEventWireup="false" CodeFile="Settings.ascx.cs" Inherits="DesktopModules.Admin.Selvan.Settings" %>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />


Settings.ascx.cs
namespace DesktopModules.Admin.Selvan
{
  partial class Settings : ModuleSettingsBase
    {
        public override void LoadSettings()
        {
            
        }
    }
}

Here settings.ascx file has a textbox and button. when click the button the textbox value are displayed in view.ascx lbl_name(label box)

please help me sir

Thanks & Regards

Selvan.R

 




 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumBasic DNN moduleBasic DNN module


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