Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Administration
Message
Information générale
Forum:
ASP.NET
Catégorie:
Silverlight
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01530471
Message ID:
01530705
Vues:
44
>>>>>Has anyone tackled writing a user administration module in Silverlight 4?
>>>>>
>>>>>Just wondering if there is anything available that makes it less of a PITA than rolling my own from scratch.
>>>>>
>>>>>Need to be able to list, edit, add, and delete users, roles, and users in roles. Need to be able to edit user profiles as well.
>>>>>
>>>>>Seems easy if you are just worried about editing your own user information.
>>>>>
>>>>>All bets are off if you are managing other users.
>>>>>
>>>>>I can do this by going after the aspnet tables directly (or via services), but it's a pain in the a$$. Profiles are a bigger PITA.
>>>>
>>>>If you're starting from scratch then the 'Silverlight Business Application' template has membership handling already plumbed in.
>>>>If you need to bolt it onto an existing app it shouldn't be hard to lift out the relevant files ( although MS has done the usual - preach modularity then stick all the code in one assembly :-} )
>>>
>>>That only applies to the current user.
>>>
>>>It doesn't give you the ability to work with other users or multiple users.
>>
>>Why do you say that ? It uses the AspNetSQLMembershipProvider and AspNetSQLRoleProvider...
>
>How do you access those on the Silverlight side?
>
>No problem on the Web side.

As John says it's already plumbed for you using RIA Services:- Services/AuthenticationService.cs and UserRegistrationService.cs (but I didn't see where the former was used.)

I've never really looked at this template before and it's a bit odd and probably goes back a bit. For instance it has it's own BusyIndicator and seems to use MVVM without the VM :-}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform