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.0How "Profile.ascx" web user control work!!!How "Profile.ascx" web user control work!!!
Previous
 
Next
New Post
1/31/2008 1:44 AM
 

hi there i am trying to understand how to "Update" Method work in "Profile.ascx" web user control.

"Profile.ascx" user control is child control in MangeUsers.ascx . This control just handel the other control and button visibilty {as per my concern}.

Update Method calll from "Private Sub cmdUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdUpdate.Click "

this method call "ProfileController.UpdateUserProfile(User, properties)" Library function.{exits in DotNetNuke.dll}

"ProfileController" Class is responsible for rest of the task.

in this class following Method Functionality is hard to understand.

Public Shared Sub UpdateUserProfile(ByVal objUser As UserInfo)
            'Update the User Profile
            If objUser.Profile.IsDirty Then
                profileProvider.UpdateUserProfile(objUser)
            End If

            'Remove the UserInfo from the Cache, as it has been modified
            DataCache.ClearUserCache(objUser.PortalID, objUser.Username)
        End Sub

Specially "profileProvider.UpdateUserProfile(objUser)" named function.

can any one tell me how it works and where function defination exits?

 
New Post
2/13/2008 7:41 AM
 

Hi sahil

Well this question was in my mind also while i was a newbie to DNN. The Profile.ascx control uses another dnn control call property editor control which dynamically loads all the properties of the given object on databind and by its attributes it can apply required validators to it. so while the control is loaded, at that time property editor control is databind with the user profile properties by setting datasource of the property editor control to user info and then calling databind method.

Now if you go through the coding of the control and if you have some basic idea of reflection, you will easily get what the deal is. tell me if you have more doubts.

This is how the control works

objUser is nothing but a UserInfo object that is by default available to any module control as they are inherited from PortalModuleBase class. Upated method is an inbuilt method to update the profile of a user which is part of profile provider api of DNN.

hope this helps.

 

 


Find out code snippets, tutorials and How Tos' about dotnetnuke at lakhlaniprashant.blogspot.com Umlimited wedding planning tips, free wedding websites and more at http://www.FirstPhera.com an indian dotnetnuke portal dedicated to wedding planning!
 
New Post
2/18/2008 2:13 AM
 

Thanks Bro, for your answer, and HA.. my best name is also prashant....

Genaration of control at runtime and assign value to them and other things are familiar to me now.

but following sentence .....

prashant wrote

Upated method is an inbuilt method to update the profile of a user which is part of profile provider api of DNN.

is still Mysterious to me. I just want to add one more parameter to "UpdateMethod" and don't know how to and where to change.

And one more question "Update Method" Call "UpdateUserProfileProperty" this storeprocedure and i want to know how and from where DNN call this storeprocedure?

Bye, Prashant.


 Sahil,

 
New Post
2/26/2008 7:20 AM
Accepted Answer 

hi there!

i found the from where "Update Method" call.

You will get the answer from my post "How UpdateMethod work!".

so redirect to this thred.

Bye.


Sahil

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How "Profile.ascx" web user control work!!!How "Profile.ascx" web user control work!!!


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