<?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>Search results matching tag 'Profile'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=Profile&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'Profile'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>App_Code in Web Application Project cause custom profile class casting error.</title><link>http://forums.asp.net/thread/3581695.aspx</link><pubDate>Thu, 24 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3581695</guid><dc:creator>maxi_ng</dc:creator><description>&lt;p&gt;I spend two days on this problem and finally nailed it.&lt;/p&gt;&lt;p&gt;But the mystery remain unsolved.&lt;/p&gt;&lt;p&gt;If I put my custom profile class inside App_Code folder, casting HttpContext.Current.Profile into the custom class will throw casting exception.&lt;/p&gt;&lt;p&gt;But if I move it out of App_Code, it cast just fine.&lt;/p&gt;&lt;p&gt;I know WAP shouldn&amp;#39;t have App_Code, but I suppose I can use that name or whatever name for my folder, right?&lt;/p&gt;&lt;p&gt;Why is there a trap? How that happens? Does anyone know?&lt;/p&gt;</description></item><item><title>Trying to display profile properties as label.text isn't working.  Why?</title><link>http://forums.asp.net/thread/3569814.aspx</link><pubDate>Wed, 16 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3569814</guid><dc:creator>penlandt</dc:creator><description>&lt;p&gt;Can anyone tell me why this code doesn&amp;#39;t work? I have confirmed that each profile property referenced in this code contains a value (and I can see the value when I step through the code) but only the last value (Preferred Name) displays on my form.&amp;nbsp; I&amp;#39;ve been pulling my hair out over this all day and I can&amp;#39;t figure out what I&amp;#39;m doing wrong.&amp;nbsp; Thanks for any help I can get.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetProfileValues()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub SetProfileValues()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With Me&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .lblTitle.Text = Profile.Title&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .lblGivenNm.Text = Profile.GivenName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .lblFamilyNm.Text = Profile.FamilyName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .lblBirthdate.Text = Profile.Birthdate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .lblNameSuffix.Text = Profile.NameSuffix&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .lblPreferredNm.Text = Profile.PreferredName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/p&gt;</description></item><item><title>Custom profile provider: is it possible to manually set the parameters being passed to GetPropertyValues(SettingsContext context, SettingsPropertyCollection collection)</title><link>http://forums.asp.net/thread/3553759.aspx</link><pubDate>Tue, 08 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3553759</guid><dc:creator>Rotem H</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to implement a Custom Profile Provider, and it would be useful if I could modify&lt;/p&gt;&lt;p&gt;the parameters being passed toGetPropertyValues(SettingsContext context, SettingsPropertyCollection collection)&lt;/p&gt;&lt;p&gt; so they would contain additional information that would be used to determine how the data is stored.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The use case for it is that I would like each user to have 1..n item lists which will be persisted to the database&lt;/p&gt;&lt;p&gt;but will be stored in different rows. So when I make a call :&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Profile.ItemList = ...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ideally I would like to somehow pass the identity of the current item list being used by the user, to the profile provider.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is there a way to set the context or the collection parameters before they are passed to the profile provider ?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Asp.net profiles</title><link>http://forums.asp.net/thread/3526410.aspx</link><pubDate>Sun, 22 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526410</guid><dc:creator>visitmohanraj</dc:creator><description>&lt;p&gt;&amp;nbsp;hi all i&amp;nbsp;&amp;nbsp;want to implement asp .net profiles&amp;nbsp;in my project i have created a profile and its working fine but the&amp;nbsp;issue is once i have created&amp;nbsp;my profile (eg:Country)&amp;nbsp;in sign up form&amp;nbsp;.its works fine for me when i login from the second time it dosent work the first time why is this happening???&lt;/p&gt;</description></item><item><title>iPrincipal or Profile Provider</title><link>http://forums.asp.net/thread/3502449.aspx</link><pubDate>Mon, 09 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3502449</guid><dc:creator>nsalcedo</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to add additional user specific fields/columns in the database (e.g. company, occupation, etc).&lt;/p&gt;
&lt;p&gt;I was going to use the Profile Provider since I am already utilizing the Membership and Role providers.&lt;/p&gt;
&lt;p&gt;Then I read about this Principal (Identity) Object.&lt;/p&gt;
&lt;p&gt;What is the difference between using iPrincipal or Profile Provider?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Issues With Profiles on IE8 only</title><link>http://forums.asp.net/thread/3496842.aspx</link><pubDate>Thu, 05 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3496842</guid><dc:creator>VeX_Harbinger</dc:creator><description>&lt;p&gt;Howdy All,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having an odd issue with Profiles on IE8 only and so far cannot find any info on the topic.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;This issue is only occuring in my Live env as well and not in my dev env.&amp;nbsp; You can see the issue here;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.tripatourium.com/"&gt;http://www.tripatourium.com/&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If you click on either of the prints on the right hand side then, click on add to cart under the large picture.&lt;/li&gt;
&lt;li&gt;You will see the cart price (on the upper right) now reflects the change.&lt;/li&gt;
&lt;li&gt;Then if you click on the other print (not the same, I have to fix that pathing) you will see the cart value is now empty again.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;This does not occur in Moz or Chrome or in IE8 when testing locally.&lt;/p&gt;
&lt;p&gt;Any info would be great.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Account Page</title><link>http://forums.asp.net/thread/3410196.aspx</link><pubDate>Thu, 17 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3410196</guid><dc:creator>Yanayaya</dc:creator><description>&lt;p&gt;&amp;nbsp;Thank you for the advice, this has sorted the error message.&amp;nbsp; Although I now have the problem that the Account page pulls absolutely no data across from the users logged in profile.&amp;nbsp; As stated the idea was to give a user an account page that displayed there username, email, comments etc etc.&lt;/p&gt;
&lt;p&gt;I have setup the scenarios as follows.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt; &amp;lt;profile enabled=&amp;quot;true&amp;quot;&amp;gt;
        &amp;lt;properties&amp;gt;
            &amp;lt;add name=&amp;quot;StaffName&amp;quot; type=&amp;quot;System.String&amp;quot;/&amp;gt;
            &amp;lt;group name=&amp;quot;Core&amp;quot;/&amp;gt;
        &amp;lt;/properties&amp;gt;
    &amp;lt;/profile&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;&amp;lt;%@ Page Language=&amp;quot;VB&amp;quot; MasterPageFile=&amp;quot;~/MasterPage.master&amp;quot; AutoEventWireup=&amp;quot;false&amp;quot; CodeFile=&amp;quot;myaccount.aspx.vb&amp;quot; Inherits=&amp;quot;_myaccount&amp;quot; %&amp;gt;
&amp;lt;asp:Content ID=&amp;quot;intro&amp;quot; ContentPlaceHolderID=&amp;quot;content&amp;quot; Runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;div&amp;gt;
    &amp;lt;p&amp;gt;You are logged in as &amp;lt;strong&amp;gt;&amp;lt;asp:LoginName ID=&amp;quot;AccountLoginName&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
    &amp;lt;asp:ChangePassword ID=&amp;quot;AccountChangePassword&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:ChangePassword&amp;gt;
    
&amp;lt;legend&amp;gt;Name:&amp;lt;/legend&amp;gt;
&amp;lt;asp:TextBox ID=&amp;quot;StaffNameTextBox&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
                 
&amp;lt;/div&amp;gt;
&amp;lt;/asp:Content&amp;gt;&lt;/pre&gt;&lt;pre class="xhtml" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="xhtml" name="code"&gt;&lt;pre class="vb.net" name="code"&gt;Imports System
Imports System.Web.Security
Imports System.Web.UI.WebControls
Imports System.Text.RegularExpressions

Partial Class _myaccount
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        If Not Page.IsPostBack Then
            StaffNameTextBox.Text = Server.HtmlDecode(Profile.StaffName)
        End If
    End Sub
End Class&lt;/pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class="xhtml" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="xhtml" name="code"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;I also have a table adapter in my DAL that selects things like Username, Email, Comments etc from the standard ASPNET login system.&lt;br /&gt;So how can I tie this together to make it pull user info into an account page for the user to see and if required...update?&lt;/p&gt;</description></item><item><title>UI web page to edit Profile properties for a User?</title><link>http://forums.asp.net/thread/3398543.aspx</link><pubDate>Thu, 10 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3398543</guid><dc:creator>TheRealMattSlay</dc:creator><description>&lt;p&gt;Is there not any kind of maintenance UI page to&amp;nbsp;edit and maintaine&amp;nbsp;the Profile properties of a User&amp;nbsp;(I&amp;#39;m using VS2008 and the Web Application template), like in the WSAT Web Site Administratration Tool where you already can edit the basic Membership and Role properties for a User? I&amp;#39;m using the basic SQL Express data tables and the basic Membership and Role providers, and now I want to begin using the Profile provider&amp;nbsp;to store and access additional properties for each User I create an account for. For instance, when I create a new User and assign them to a Role(s) on my web app, I use the WSAT tool, and&amp;nbsp;now I also need to set certain Profile properties for them too. Is&amp;nbsp;the&amp;nbsp;only way to set these properties is&amp;nbsp;programmatically? Surely there is an Admininstrative type of UI page for this&amp;nbsp;so you can quickly view and edit Profile properties for a User.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Profile Seems to be caching</title><link>http://forums.asp.net/thread/3361663.aspx</link><pubDate>Fri, 21 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3361663</guid><dc:creator>Erik_with_a_K</dc:creator><description>&lt;p&gt;&amp;nbsp;Supergriff, did you find a solution to your profile-based shopping cart value not updating post?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I seem to have the same problem with profile values.&amp;nbsp; When ever I update a value that is stored in a profile, it seems to take an additional page refresh to display the latest value.&amp;nbsp; For example, I have page that updates a user&amp;#39;s balance.&amp;nbsp; I also have a profile field named UserBalance that I use to display the user&amp;#39;s balance in various pages. When I use the page to update a user&amp;#39;s balance (which calls a SQL stored procedure that updates the value in the db), everything works fine except that on my confirmation page, Profile.UserBalance returns the old balance--not the new balance. As soon as I refresh the page or view another page, the new balance is correctly displayed. &lt;/p&gt;
&lt;p&gt;I attempted to &amp;quot;re-load&amp;quot; the user profile using Profile.GetProfile(User.Identity.Name), but that doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Any help is much appreciated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;-Erik&lt;/p&gt;</description></item><item><title>Profile Class Serialization issue (SQL Server Session)</title><link>http://forums.asp.net/thread/3361782.aspx</link><pubDate>Fri, 21 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3361782</guid><dc:creator>ram007</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi, I&amp;nbsp;am trying to move a web application session from InProc to Sql Server. We are getting the following error:&lt;/p&gt;
&lt;p&gt;&amp;quot;[SerializationException: Type &lt;strong&gt;&amp;#39;ProfileCommon&amp;#39;&lt;/strong&gt; in Assembly &amp;#39;App_Code.2z7l-uzj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null&amp;#39; is not marked as serializable.] &amp;quot;&lt;/p&gt;
&lt;p&gt;Then we created a custom profile class (inherits with ProfileBase class) and marked it as Serializable and also marked all the classes as Serializable.&lt;/p&gt;
&lt;p&gt;Now we&amp;nbsp;are getting&amp;nbsp;&amp;nbsp;&amp;quot;[SerializationException: Type &lt;strong&gt;&amp;#39;ProfileBase&amp;#39;&lt;/strong&gt; in Assembly &amp;#39;App_Code.2z7l-uzj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null&amp;#39; is not marked as serializable.] &amp;quot;&lt;/p&gt;
&lt;p&gt;We are not storing any objects in the Profile, we are storing simple strings&amp;nbsp;in profile. Please let me know if anyone faced the same scenario and has solution.&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Ram.&lt;/p&gt;</description></item></channel></rss>