Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How can I get user name?
Previous Previous
 
Next Next
New Post 5/15/2008 8:59 AM
Resolved
User is offline Qi
8 posts
10th Ranked


How can I get user name? 

 My question is I want to modify "Update Password" function. I created a new module, copy and paste the code from admin/users/password.ascx.vb, and modified it, but I cannot get user's information.  User is null when debugging. I don't know how to get this information. I am new for DotNetNuke 4.8.2, I have worked on 2.12 for a couple of years.

 If UserController.ChangePassword(User, txtOldPassword.Text, txtNewPassword.Text) Then

 I appreciate any helps.

 

 
New Post 5/15/2008 9:16 AM
Online now... Chris Hammond
2642 posts
engagesoftware.com
5th Ranked








Re: How can I get user name? 

Make sure your module inherits from PortalModuleBase and you should then have access to UserInfo


Chris Hammond
Engage Software
St. Louis, MO
314.966.4000


The leading provider of DotNetNuke skinning, training and custom module development.
Official DotNetNuke® Training Provider
 
New Post 5/15/2008 11:45 AM
User is offline Qi
8 posts
10th Ranked


Re: How can I get user name? 

I made the changes and I can access userinfo but still nothing  for user's info. I feel this should be easy,  not usre what kind of the  istake I made. Please advise.

  Partial Class ViewChangePassword Inherits Entities.Modules.PortalModuleBase WithEvents user As New UserInfo

Private

 Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadTryIf Not Page.IsPostBack ThenIf Not user.Username Is Nothing Then

 

End if

End if

 

Thanks much.

 

 

 

 

 

 

 

 

 

Partial

 

 

DataBind()

 

 

Partial

 

Public

 

 pnlPassword.Visible = true

 
New Post 5/15/2008 1:17 PM
User is offline Qi
8 posts
10th Ranked


Re: How can I get user name? 

Thank you for Chris's advice, it works!

Sorry for posting unclean message.

 

 
New Post 6/9/2008 8:36 AM
User is offline Wallaman
4 posts
10th Ranked


Re: How can I get user name? 

I have been facing the same issue, but I am unclear as to your resolution from the postings.  Any chance I might get a bigger code snippet to better understand your approach?

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How can I get user name?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net
Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP