<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : User ID from asp.net security</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : User ID from asp.net security</description>
  <pubDate>Wed, 13 May 2026 15:35:18 -700</pubDate>
  <lastBuildDate>Wed, 06 Jan 2010 08:56:45 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1604</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>User ID from asp.net security : The name of the assembly in which...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6031#6031</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 06-Jan-2010 at 8:56am<br /><br />The name of the assembly in which the CustomLoginManager is defined must be specified in the top-level probe asssembly names, even if it might already be in the probes under an EdmKey.&nbsp; So if the class is defined in assembly "ServerLib" then&nbsp;the config will look something like this:&nbsp; <DIV>&nbsp;</DIV><DIV>&lt;ideablade.configuration version="5.00" ... &gt;<BR>&nbsp;&nbsp;&nbsp; &lt;probeAssemblyNames&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;probeAssemblyName name="ServerLib" /&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/probeAssemblyNames&gt;<BR>&nbsp;&nbsp;&nbsp; ... </DIV><DIV>&lt;/ideablade.configuration&gt;</DIV>]]>
   </description>
   <pubDate>Wed, 06 Jan 2010 08:56:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6031#6031</guid>
  </item> 
  <item>
   <title>User ID from asp.net security : How do I configure IB to use CustomLoginManager....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6030#6030</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=639" rel="nofollow">manishaudio</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 06-Jan-2010 at 7:42am<br /><br />How do I configure IB to use CustomLoginManager.&nbsp; I don't understand the documentation.&nbsp; If you could send me the snippet of the config file, I'd appreciate it.]]>
   </description>
   <pubDate>Wed, 06 Jan 2010 07:42:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6030#6030</guid>
  </item> 
  <item>
   <title>User ID from asp.net security : The UserBase is very IPrincipal...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6029#6029</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 05-Jan-2010 at 3:36pm<br /><br />The UserBase is very IPrincipal and IIdentity oriented, so it holds name and roles and not much else.&nbsp; The UserBase class is DevForce's IPrincipal implementation for Silverlight, but you can&nbsp;extend it fairly easily to do what you need.&nbsp; As you mention you will also need to&nbsp;subclass the AspAuthenticatingLoginManager.&nbsp;&nbsp; Alternatively, and harder, you could write your own ILoginManager and IPrincipal&nbsp;implementations.&nbsp; Here's a sample of what you can do to stick the UserID into the&nbsp;custom UserBase so that it's available on the Silverlight client, as well as any server-side&nbsp;DevForce code your write. <DIV>&nbsp;</DIV><DIV>// In CustomUser.cs&nbsp;in a server project, and shared in an SL project:</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&#091;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DataContract</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&#093;</FONT></FONT></DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>class</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>CustomUser</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> : </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>UserBase</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>, </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IKnownType</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> {</FONT></FONT></DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp; public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> CustomUser(</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IIdentity</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> identity, </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IEnumerable</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&gt; roles) :</FONT></FONT></DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>(identity, roles) { }</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&nbsp;&nbsp; &#091;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DataMember</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&#093;</FONT></FONT></DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp; public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Guid</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> UserID { </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>get</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>; </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>set</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>; }</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>}</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas>// In CustomLoginManager.cs in a server project:</FONT></DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>class</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>CustomLoginManager</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> : </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>AspAuthenticatingLoginManager</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> {</DIV><DIV><DIV></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp; protected</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>override</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IPrincipal</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> CreateUserCore(</FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> name, </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>bool</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> isAuthenticated, </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IEnumerable</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&gt; roles) {</FONT></FONT></DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> user = </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>base</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.CreateUserCore(name, isAuthenticated, roles) </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>as</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>CustomUser</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>;</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user.UserID = (</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Guid</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Membership</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.GetUser(name).ProviderUserKey;</FONT></FONT></DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> user;</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&nbsp;&nbsp; }</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>}</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2 face="Arial, Helvetica, sans-serif">Before this week we actually hadn't had any requests for the UserID.&nbsp; We will look at incorporating this so that you don't need to write custom code.</FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas></FONT></FONT></FONT></FONT></DIV></DIV>]]>
   </description>
   <pubDate>Tue, 05 Jan 2010 15:36:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6029#6029</guid>
  </item> 
  <item>
   <title>User ID from asp.net security : I am simply trying to obtain the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6028#6028</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=639" rel="nofollow">manishaudio</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 05-Jan-2010 at 2:15pm<br /><br /><P>I am simply trying to obtain the userid from the asp_users table in asp.net security.&nbsp;On the server side I can use the following code:</P><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2><P>MembershipUser</FONT></FONT><FONT size=2> currentUser;</P><P>currentUser = </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Membership</FONT></FONT><FONT size=2>.GetUser(Login2.UserName);</P><P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Guid</FONT></FONT><FONT size=2> cguid = (</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Guid</FONT></FONT><FONT size=2>)currentUser.ProviderUserKey;</P><P>Session.Add(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"userid"</FONT></FONT><FONT size=2>, cguid);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>.userguid.Value = cguid.ToString();</P><DIV>What I was looking to do is obtain this from the UserBase.&nbsp; I don't understand how extending userbase will achieve this functionality.&nbsp; I probably have to extend the AspAuthenticatingLoginManager and UserBase as well.&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Meanwhile, I am passing the user guid to the silverlight app via an html hidden field.&nbsp; Hopefully, I've clarified things.&nbsp; </FONT></DIV></DIV>]]>
   </description>
   <pubDate>Tue, 05 Jan 2010 14:15:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6028#6028</guid>
  </item> 
  <item>
   <title>User ID from asp.net security : I&amp;#039;m sorry. I don&amp;#039;t mean...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6027#6027</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=482" rel="nofollow">WardBell</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 05-Jan-2010 at 1:41pm<br /><br />I'm sorry. I don't mean to be obtuse, but int&nbsp;that tutorial the Silverlight app makes no reference in to System.web nor to the Membership class. It receives an instance of the CustomUser class with the Profile&nbsp;information in it. This instance is accessible through the EntityManager.Principal property on the client.&nbsp;The CustomerUser class abstracts away the dependency on System.web.<DIV>&nbsp;</DIV><DIV>The&nbsp;server-side code (regular&nbsp;.NET)&nbsp;&nbsp;does have the System.web reference. I believe that is necessary to support the Web.config where the profile properties are defined. That's how DevForce knows how&nbsp;to populate the CustomUser</DIV><DIV>&nbsp;</DIV><DIV>Perhaps I'm not understanding your question properly.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 05 Jan 2010 13:41:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6027#6027</guid>
  </item> 
  <item>
   <title>User ID from asp.net security : Hi Ward,  Yes, I have looked at...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6021#6021</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=639" rel="nofollow">manishaudio</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 04-Jan-2010 at 7:27pm<br /><br />Hi Ward,<br /><br />Yes, I have looked at the tutorial but it does not suffice for my purposes.  In order to get the userid, you need to reference the Membership class which is in System.web, something which cannot be done Silverlight<br /><br />I just thought that since userid is quite frequently used in asp.net security design to extend the model, Ideablade would have provided a convenience method.  Perhaps in the next release?<br /><br />The examples only take you so far.]]>
   </description>
   <pubDate>Mon, 04 Jan 2010 19:27:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6021#6021</guid>
  </item> 
  <item>
   <title>User ID from asp.net security : Have you looked at our tutorial...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6018#6018</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=482" rel="nofollow">WardBell</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 04-Jan-2010 at 5:56pm<br /><br />Have you looked at our tutorial on this subject?<DIV>&nbsp;</DIV><DIV>It's the "<strong>ASPNET Profile</strong>" tutorial. You can get to it by walking from the Windows Start Menu "IdeaBlade DevForce v??? | Documentation | Learning Resources | Security | 300 Silverlight".</DIV><DIV>&nbsp;</DIV><DIV>On Vista/Win7 it's deployed to disk at: C:\Users\Public\Documents\DevForce\<strong>Learning Resources\100_Security\Samples\300SLV\CodeCS\ASPNET Profile</strong></DIV><DIV>&nbsp;</DIV><DIV>The sample&nbsp;assumes some familiarity with ASP.NET Security. If you understand how that works, you'll know how to extend your memberships with additional properties (key/value pairs). You can add "user id" and anything else you want. How you get this information ino the membership database is up to you.</DIV><DIV>&nbsp;</DIV><DIV>If you are not an ASP.NET Security adept ((and I&nbsp;am not adept myself :-) )), you may want to pick up a book on the ASP.NET Security.</DIV><DIV>&nbsp;</DIV><DIV>Once you have such a profile, you can proceed as described in the tutorial. The essential step is this one:</DIV><DIV>&nbsp;</DIV><DIV><P align=left></P><P><FONT size=3><FONT color=#0000ff>Create a&nbsp;CustomUser class&nbsp;- such as the one located in the web project which is also linked from the Silverlight project - with properties corresponding to the profile properties. For DevForce to find and use the custom class, <U>it must extend UserBase</U>, <U>be serializable</U>, and be <U>discoverable</U> as a "known type" via the IKnownType interface or the DiscoverableTypeAttribute. </FONT></P><P><FONT color=#0000ff>DevForce will automatically populate the custom properties from the profile during login.</FONT> </FONT></P></DIV><DIV><DIV>Hope that gets you going in the right direction. Cheers.</DIV></DIV>]]>
   </description>
   <pubDate>Mon, 04 Jan 2010 17:56:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6018#6018</guid>
  </item> 
  <item>
   <title>User ID from asp.net security : Is there a way to get the user...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6006#6006</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=639" rel="nofollow">manishaudio</a><br /><strong>Subject:</strong> 1604<br /><strong>Posted:</strong> 30-Dec-2009 at 7:43am<br /><br />Is there a way to get the user id from the UserBase or any other way through DevForce.  The name is not enough for my purposes.]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 07:43:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1604&amp;PID=6006#6006</guid>
  </item> 
 </channel>
</rss>