<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2637669.aspx</link><pubDate>Mon, 22 Sep 2008 16:43:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2637669</guid><dc:creator>ArminStockner</dc:creator><author>ArminStockner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2637669.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2637669</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I think you will find your solution right here:&lt;/p&gt;&lt;p&gt;http://forums.asp.net/p/1225752/2199107.aspx &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2637285.aspx</link><pubDate>Mon, 22 Sep 2008 14:27:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2637285</guid><dc:creator>amereto2k</dc:creator><author>amereto2k</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2637285.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2637285</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thats the error I get when logged im thought. &lt;/p&gt;
&lt;p&gt;can that be right?&lt;/p&gt;</description></item><item><title>Re: Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2637207.aspx</link><pubDate>Mon, 22 Sep 2008 14:02:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2637207</guid><dc:creator>ArminStockner</dc:creator><author>ArminStockner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2637207.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2637207</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yeah with this code you have to be locked in because the profiles are saved under your specific user. If you also want so save the profile anonymous you have to add some additional code. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2635749.aspx</link><pubDate>Mon, 22 Sep 2008 00:24:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2635749</guid><dc:creator>amereto2k</dc:creator><author>amereto2k</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2635749.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2635749</wfw:commentRss><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;I got the following error?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Description: &lt;/strong&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Configuration.Provider.ProviderException: This property cannot be set for anonymous users.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table class="" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;code&gt;&lt;pre&gt;Line 58:         }
Line 59:         set {
&lt;font color="red"&gt;Line 60:             this.SetPropertyValue(&amp;quot;Profile1&amp;quot;, value);
&lt;/font&gt;Line 61:         }
Line 62:     }&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&amp;nbsp;code behind&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; Login1_Authenticate(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;AuthenticateEventArgs&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;MembershipUser&lt;/font&gt;&lt;font size="2"&gt; user = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Membership&lt;/font&gt;&lt;font size="2"&gt;.GetUser(Login1.UserName);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;Profile.Profile1 = user.CreationDate.ToString();&lt;/p&gt;
&lt;p&gt;Profile.Profile2 = user.LastActivityDate.ToString();&lt;/p&gt;
&lt;p&gt;Profile.Save(); &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In web config - I dont allow allow Anonymous users on the site so I put that bit to false&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;add&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Profile1&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;System.String&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;allowAnonymous&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;add&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Profile2&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;System.String&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;allowAnonymous&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2635659.aspx</link><pubDate>Sun, 21 Sep 2008 21:26:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2635659</guid><dc:creator>ArminStockner</dc:creator><author>ArminStockner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2635659.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2635659</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So this should be a working code but I didn&amp;#39;t have time to test it. I put an login control on my site with the authenticate event automatically created by the control:&lt;/p&gt;&lt;p&gt;&amp;nbsp; protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MembershipUser user = Membership.GetUser(Login1.UserName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profile.Profile1 = user.CreationDate.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profile.Profile2 = user.LastActivityDate.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profile.Save();&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;In order to use the profile you have to declare them in web.config like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;profile &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;Profile1&amp;quot; allowAnonymous=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;Profile2&amp;quot; allowAnonymous=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/profile&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2635598.aspx</link><pubDate>Sun, 21 Sep 2008 19:18:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2635598</guid><dc:creator>amereto2k</dc:creator><author>amereto2k</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2635598.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2635598</wfw:commentRss><description>&lt;p&gt;yes if you could write some c sharp code to put me on track be very useful.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2635559.aspx</link><pubDate>Sun, 21 Sep 2008 18:10:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2635559</guid><dc:creator>ArminStockner</dc:creator><author>ArminStockner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2635559.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2635559</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;With the MembershipUser class you will get all these information you need. Just load it like in this page:&lt;/p&gt;&lt;p&gt;http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.aspx&lt;/p&gt;&lt;p&gt;Afterwards you have to save the values to profiles:&lt;/p&gt;&lt;p&gt;http://www.odetocode.com/articles/440.aspx&lt;/p&gt;&lt;p&gt;If you need a code sample I will write you a small one &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Getting account created date anf logged on date  in Profiles</title><link>http://forums.asp.net/thread/2635509.aspx</link><pubDate>Sun, 21 Sep 2008 17:17:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2635509</guid><dc:creator>amereto2k</dc:creator><author>amereto2k</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2635509.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2635509</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I am using profiles and on MyProfile.aspx page, i want to show the date the user created their account&lt;/p&gt;
&lt;p&gt;and the last time they logged on.&lt;/p&gt;
&lt;p&gt;Also I want to get the users&amp;nbsp;birthdate. I know i can declare a type of&amp;nbsp; datetime in Webconfig but not sure &lt;/p&gt;
&lt;p&gt;what are the best controls to put on the page so&amp;nbsp;the user can enter this detail. Dropdown list maybe.&lt;/p&gt;
&lt;p&gt;I am extending the create user wizard to get the extra profile data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;grateful for any examples in&amp;nbsp; in Charp&lt;/p&gt;
&lt;p&gt;&amp;nbsp;amereto&lt;/p&gt;</description></item></channel></rss>