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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


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
User is offline Chris Hammond
2556 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.

 


Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com

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