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.0UserAccount Module (DNN 4.x)UserAccount Module (DNN 4.x)
Previous
 
Next
New Post
2/21/2006 9:04 PM
 

Hello,

How do I extract the UserAccount Module and use it as a new custom module? So I can change this module to what I want.

Please help...


DotNetNuke Newbie!
 
New Post
2/22/2006 8:38 AM
 
This really depends on what you want to do. Obviously, the easiest way is to copy the code and modify it as needed. If you only need to make UI changes, you can simply copy the ASPX page (and keep it's current inheritance hierarchy). If you want to add some new features to it, you can create a new class that inherits from the existing control. If you choose this method, tho, you will have to make sure that you do not remove any of the existing elements. If you don't, you're running the risk of getting object reference errors.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
2/28/2006 1:38 AM
 

Hello Flanakin,

Thanks for the reply, I have successfully add some new features (textboxes and dropdown) to it by copy the ASPX page and create my own class.

Thanks


DotNetNuke Newbie!
 
New Post
2/28/2006 4:59 PM
 
J,

Is this something you might share?

thanks
-e
 
New Post
2/28/2006 9:55 PM
 

Hi Emaynard,

What I do is a very simple approach.
1. Copy the "Register.aspx" plus its code behind to a new folder in "DesktopModules" folder.

2. Create a new user control for new fields (textboxes, dropdownlists, etc.) those are you want to add. Put this new user control file inside the new folder you just created as well.

3. Create a class for this new user control (you can follow "Address.vb" as a sample). In my case this class file resides in "App_Code" folder

4. This new added fields should be stored in new separate table in the database and using some new stored procedures to store their values. So make sure you create a new table with some info so the data could be retrieve/change for related user - I put "PortalId" and "UserId" in this new table.

This only one of many ways to do this. But with this way I can make sure that I never touch the core/original codes.

Please feel free to do it with your creative ways. As my level of programming also still mediocre :P


DotNetNuke Newbie!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0UserAccount Module (DNN 4.x)UserAccount Module (DNN 4.x)


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