shawndg
3/1/2011 2:06:18 PM
Ok.. Thanks for the help.. should help point me in the right direction.
I'm thinking.. I have a need for both ways..
I want in some scenarios to just place a control a user profile.. and have it know.. if the user is logged in is the assigned user or not... and display edit or view..
I also have a need to have a whole separate page to allow for simple task.. like uploading files could in theory work better as one page.. As I plan to have a pretty detailed system when it comes to folder hierarchy and support and I prob want a pretty detailed interface.. I also want to make sure I have code reuse.. as much of this code would be usable in several controls I plan to write..
Im more of less trying to figure out the best way to do my permission system..
I dont see me having to many permission needs at first.. so .. although the simple approach is a good starting block I do see a future need for a more detailed permissions system.. with rules.. etc.. So It may be a good idea for me to at least some sort of basic rule support to my initial code.
I am a little concerned too.. about having the webpart know it can only be placed on a user profile.. .. maybe something like you said..
if (UrlParams.UserProfile.UserName.HasValue)
{
userName = UrlParams.UserProfile.UserName.Value;
else
{
// WebPart Needs to be placed on.. user profile page.
}
Or is there a better way to do this ? or is this method ok.. ?
This content has not been rated yet.
1871
Reputation
252
Total posts