<?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 'SQLProfileProvider'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=SQLProfileProvider&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'SQLProfileProvider'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>MsSql Store Procedure</title><link>http://forums.asp.net/thread/2585017.aspx</link><pubDate>Wed, 27 Aug 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2585017</guid><dc:creator>mohfeza</dc:creator><description>&lt;p&gt;&amp;nbsp;how can i insert data into temp table from 2 diferent tables, and get data from temp table.&lt;/p&gt;&lt;p&gt;My following code giving output just from 2nd table. how can i append 2nd table data(&amp;quot;new_BannerList&amp;quot; table) into temp table after inserting &lt;br /&gt;&lt;/p&gt;&lt;p&gt;1st table data(&amp;quot;WDI_T_PartnerRegistration&amp;quot; table).&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ALTER PROCEDURE dbo.GetAllAdBanner &lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;CREATE TABLE #TempTable&amp;nbsp; &lt;br /&gt;(&amp;nbsp; &lt;br /&gt;&amp;nbsp; UserName VARCHAR(100),&amp;nbsp; &lt;br /&gt;&amp;nbsp; Banner VARCHAR(200)&amp;nbsp; &lt;br /&gt;) &lt;br /&gt;&lt;br /&gt;INSERT INTO #TempTable &lt;br /&gt;Select PR.UserName AS UserName, PR.Banner AS Banner from&amp;nbsp; WDI_T_PartnerRegistration PR ,WDI_M_Users MU where MU.UserId=PR.UserName &lt;br /&gt;and MU.UserType=3 and PR.Status=1 and PR.Banner!= &amp;#39;&amp;#39;&amp;nbsp; &lt;br /&gt;Select&amp;nbsp; NBL.PartnerID AS UserName, NBL.Banner AS Banner from new_BannerList NBL where NBL.Banner!=&amp;#39;&amp;#39;&lt;br /&gt;&lt;br /&gt;SELECT * FROM #TempTable &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;drop table #TempTable&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;END&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Mohfeza &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Membership Management Complete Starter Kit</title><link>http://forums.asp.net/thread/2472920.aspx</link><pubDate>Mon, 07 Jul 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2472920</guid><dc:creator>hunzonian</dc:creator><description>&lt;p&gt;&amp;nbsp;Note to Admin: Please publish this in appropriate section.&lt;/p&gt;&lt;p&gt;I have published a membership management starter kit on codeplex that works with the default membership, role and profile provider. I hope it helps some beginners. It is available on CodePlex at&amp;nbsp; &lt;a href="http://www.codeplex.com/AspNetWSAT" title="asp.net membership management starter kit" target="_blank"&gt;http://www.codeplex.com/AspNetWSAT&lt;/a&gt;&amp;nbsp; under the releases tab.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Difficulties with SqlProfileProvider - where to get the SettingsContext object from?</title><link>http://forums.asp.net/thread/2412550.aspx</link><pubDate>Tue, 10 Jun 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2412550</guid><dc:creator>jahabdank</dc:creator><description>&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;p&gt;So just for the sake of people who will come here later, the code in the code behind (meaning from the within the Page object) can look like that (I really wonder why sombody did not write it this way in the MSDN class description):&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;                &lt;span class="cmt"&gt;// Providers is a static method in the ProfileManager class&lt;/span&gt;
&lt;b id="2"&gt;2    &lt;/b&gt;                System.Web.Profile.SqlProfileProvider p = (System.Web.Profile.SqlProfileProvider)System.Web.Profile.ProfileManager.Providers[&lt;span class="st"&gt;&amp;quot;SqlProvider&amp;quot;&lt;/span&gt;];
&lt;b id="3"&gt;3    &lt;/b&gt;
&lt;b id="4"&gt;4    &lt;/b&gt;                &lt;span class="cmt"&gt;// ProfileBase.Properties is a static collection of properties defined in the web config:
&lt;b id="5"&gt;5    &lt;/b&gt;                //&amp;lt;profile defaultProvider=&amp;quot;SqlProvider&amp;quot;&amp;gt;
&lt;b id="6"&gt;6    &lt;/b&gt;                //  &amp;lt;providers&amp;gt;
&lt;b id="7"&gt;7    &lt;/b&gt;                //    &amp;lt;clear /&amp;gt;
&lt;b id="8"&gt;8    &lt;/b&gt;                //    &amp;lt;add name=&amp;quot;SqlProvider&amp;quot;
&lt;b id="9"&gt;9    &lt;/b&gt;                //      type=&amp;quot;System.Web.Profile.SqlProfileProvider&amp;quot;
&lt;b id="10"&gt;10   &lt;/b&gt;                //      connectionStringName=&amp;quot;ASPNETDBConnectionString&amp;quot;
&lt;b id="11"&gt;11   &lt;/b&gt;                //      applicationName=&amp;quot;SampleApplication&amp;quot;
&lt;b id="12"&gt;12   &lt;/b&gt;                //      description=&amp;quot;SqlProfileProvider for SampleApplication&amp;quot; /&amp;gt;
&lt;b id="13"&gt;13   &lt;/b&gt;                //  &amp;lt;/providers&amp;gt;
&lt;b id="14"&gt;14   &lt;/b&gt;                //  &amp;lt;properties&amp;gt; --cmt:2abe902b-fbad-4ab1-905c-c40df7587bc0--
&lt;b id="15"&gt;15   &lt;/b&gt;                //    &amp;lt;add name=&amp;quot;ZipCode&amp;quot; /&amp;gt;
&lt;b id="16"&gt;16   &lt;/b&gt;                //    &amp;lt;add name=&amp;quot;CityAndState&amp;quot; /&amp;gt;
&lt;b id="17"&gt;17   &lt;/b&gt;                //  &amp;lt;/properties&amp;gt;
&lt;b id="18"&gt;18   &lt;/b&gt;                //&amp;lt;/profile&amp;gt;&lt;/span&gt;
&lt;b id="19"&gt;19   &lt;/b&gt;                SettingsPropertyValueCollection pvalues =
&lt;b id="20"&gt;20   &lt;/b&gt;                  p.GetPropertyValues(&lt;span class="kwd"&gt;this&lt;/span&gt;.Context.Profile.Context, System.Web.Profile.ProfileBase.Properties);
&lt;b id="21"&gt;21   &lt;/b&gt;
&lt;b id="22"&gt;22   &lt;/b&gt;                &lt;span class="cmt"&gt;// you can get or set the values&lt;/span&gt;
&lt;b id="23"&gt;23   &lt;/b&gt;                pvalues[&lt;span class="st"&gt;&amp;quot;ZipCode&amp;quot;&lt;/span&gt;].PropertyValue = &lt;span class="st"&gt;&amp;quot;98052&amp;quot;&lt;/span&gt;;
&lt;b id="24"&gt;24   &lt;/b&gt;                pvalues[&lt;span class="st"&gt;&amp;quot;CityAndState&amp;quot;&lt;/span&gt;].PropertyValue = &lt;span class="st"&gt;&amp;quot;Redmond, WA&amp;quot;&lt;/span&gt;;
&lt;b id="25"&gt;25   &lt;/b&gt;
&lt;b id="26"&gt;26   &lt;/b&gt;                &lt;span class="cmt"&gt;// in order to update, pass the current Profile Context, and the values&lt;/span&gt;
&lt;b id="27"&gt;27   &lt;/b&gt;                p.SetPropertyValues(&lt;span class="kwd"&gt;this&lt;/span&gt;.Context.Profile.Context, pvalues);
&lt;/pre&gt;&lt;/b&gt;
&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;</description></item><item><title>Difficulties with SqlProfileProvider - where to get the SettingsContext object from?</title><link>http://forums.asp.net/thread/2410990.aspx</link><pubDate>Mon, 09 Jun 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2410990</guid><dc:creator>jahabdank</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am tryng to use the built it Providers (Membership, Profile etc.). I have problems with SqlProfileProvider. I try to run exampe code from: http://msdn.microsoft.com/en-us/library/system.web.profile.sqlprofileprovider.setpropertyvalues(VS.80).aspx&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;SqlProfileProvider p = 
&lt;b id="2"&gt;2    &lt;/b&gt;  (SqlProfileProvider)Profile.Providers[&lt;span class="st"&gt;&amp;quot;SqlProvider&amp;quot;&lt;/span&gt;];
&lt;b id="3"&gt;3    &lt;/b&gt;
&lt;b id="4"&gt;4    &lt;/b&gt;SettingsPropertyValueCollection pvalues = 
&lt;b id="5"&gt;5    &lt;/b&gt;  p.GetPropertyValues(Profile.Context, ProfileBase.Properties);
&lt;b id="6"&gt;6    &lt;/b&gt;
&lt;b id="7"&gt;7    &lt;/b&gt;pvalues[&lt;span class="st"&gt;&amp;quot;ZipCode&amp;quot;&lt;/span&gt;].PropertyValue = &lt;span class="st"&gt;&amp;quot;98052&amp;quot;&lt;/span&gt;;
&lt;b id="8"&gt;8    &lt;/b&gt;pvalues[&lt;span class="st"&gt;&amp;quot;CityAndState&amp;quot;&lt;/span&gt;].PropertyValue = &lt;span class="st"&gt;&amp;quot;Redmond, WA&amp;quot;&lt;/span&gt;;
&lt;b id="9"&gt;9    &lt;/b&gt;
&lt;b id="10"&gt;10   &lt;/b&gt;p.SetPropertyValues(Profile.Context, pvalues);
&lt;/pre&gt;&lt;p&gt;but it neither explains where does the SettingsContext comes from, nor what &amp;#39;Profile&amp;#39; object is .... (what type and where to get it from. It is surely not the ProfileManager, because it does not have a Context field).&lt;/p&gt;&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;Jozef A. Habdank&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Setting Membership/Profile/Role provider's connection string at runtime...?</title><link>http://forums.asp.net/thread/2211924.aspx</link><pubDate>Tue, 04 Mar 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2211924</guid><dc:creator>BDawg</dc:creator><description>&lt;p&gt;&amp;nbsp;OK figured it out...and my multi national company is now saved...ha ha&lt;/p&gt;&lt;p&gt; This is a one liner gang........&lt;/p&gt;&lt;p&gt;you will need to create your own providers however, We simply downloaded the SampleProviderToolkitSampleProviders from microsoft to lessen the blow.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://download.microsoft.com/download/a/b/3/ab3c284b-dc9a-473d-b7e3-33bacfcc8e98/ProviderToolkitSamples.msi" target="_blank"&gt;http://download.microsoft.com/download/a/b/3/ab3c284b-dc9a-473d-b7e3-33bacfcc8e98/ProviderToolkitSamples.msi&lt;/a&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Class to modify&lt;/p&gt;&lt;p&gt;SQLConnectionHelper.cs&lt;/p&gt;&lt;p&gt;Method to modify &lt;/p&gt;&lt;p&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;internal static string GetConnectionString(string specifiedConnectionString, bool lookupConnectionString, bool appLevel)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;//Your Conn String goes here!!&lt;/p&gt;&lt;p&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Factory.ConnectionString;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;we used our own namespace to be used in the web.congif as well.&lt;/p&gt;&lt;p&gt;complile that bad boy and your golden..&lt;/p&gt;&lt;p&gt;have fun&lt;br /&gt;&lt;/p&gt;&lt;p&gt;--b&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>want web parts with drag &amp;amp; drop feature only , no personlization</title><link>http://forums.asp.net/thread/1875638.aspx</link><pubDate>Fri, 24 Aug 2007 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1875638</guid><dc:creator>pragasht</dc:creator><description>&lt;p&gt;i want to use web parts feature of drag &amp;amp; drop , but i dont want personlization wich cause so may problem,&lt;/p&gt;
&lt;p&gt;i give &lt;strong&gt;personalization = false for&lt;/strong&gt; webparts manager.&lt;/p&gt;
&lt;p&gt;then in server code i&amp;nbsp;change the &amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;strong&gt;MainWebPartManager.DisplayMode = WebPartManager.DesignDisplayMode&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;here there is an error says that check personalisation is enabled &lt;br /&gt;for this user,&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;is that possible to change the display mode with personlisation enabled false&lt;/p&gt;
&lt;p&gt;thanks in advance &lt;/p&gt;&lt;/font&gt;</description></item><item><title>SqlProfileProvider, no ProfileCommon in code-behinds but yes in the ASPX code?</title><link>http://forums.asp.net/thread/1650371.aspx</link><pubDate>Tue, 03 Apr 2007 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1650371</guid><dc:creator>junglemason</dc:creator><description>&lt;p&gt;First, please allow me to vent:&lt;br /&gt;I've spent all day looking into implementing a Profile Provider.&amp;nbsp; No articles I've found are less than a year old.&amp;nbsp; None of the examples in any of the articles worked for me.&amp;nbsp; Eventually I ran across&amp;nbsp;a post in this forum&amp;nbsp;saying it's not going to work in a Web Application Project, with a link to an installable add-in for Visual Studio 2005 which it turns out will not install for me because my add-ins folder is mapped to a remote server and the MSI can't access it.&amp;nbsp; And the site that houses that fix is going to be "phased out" by Microsoft a few months from now.&lt;br /&gt;Well, anyway, that wasn't true anyway...&lt;br /&gt;...it DOES work without that add-in.&lt;br /&gt;Partially.&lt;br /&gt;The ProfileCommon class is readily available in ASPX code, just not in a code-behind.&amp;nbsp; So it seems to me that the compiled ProfileCommon is working (that's what the add-in was going to give me).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;To the point:&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;Can anyone point me to a good explanation or a working examples of a Web Application Project that uses&amp;nbsp;the default SqlProfileProvider and accesses the profile properties in code-behinds?&lt;/p&gt;
&lt;p&gt;I have managed to get really close by breaking down and&amp;nbsp;putting the code in a script block in&amp;nbsp;the ASPX code instead of a code-behind.&amp;nbsp; This page uses a Master Page, and I am handling the CreatedUser event of a CreateUserWizard with a customized CreateUserWizardStep.&amp;nbsp; When I run in normal mode, a null pointer exception is thrown.&amp;nbsp; When I run in debug mode, the code doesn't get executed!&amp;nbsp; This is the most frustrating thing I've encountered in months.&amp;nbsp; I could have written my own code for this from scratch by now.&lt;/p&gt;
&lt;p&gt;Any advice would be MUCH appreciated.&lt;/p&gt;</description></item><item><title>How to change profile provider at runtime, then access user profile data?</title><link>http://forums.asp.net/thread/1523700.aspx</link><pubDate>Mon, 08 Jan 2007 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1523700</guid><dc:creator>jgaffney</dc:creator><description>&lt;p&gt;I am trying to work around a situation in which the connection strings are different for the "test" and "production" versions of a .net site.&lt;/p&gt;
&lt;p&gt;Is there a way to switch the profile provider connection string at runtime? That would be the simple solution.&lt;/p&gt;
&lt;p&gt;Couldn't find a way to do this, so I created two different profile providers in the web config, one for each site.&lt;/p&gt;&lt;font size=2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;if&lt;/font&gt;&lt;font size=2&gt; (HostName == &lt;/font&gt;&lt;font color=#800000 size=2&gt;"localhost"&lt;/font&gt;&lt;font size=2&gt;)&lt;br /&gt;{&lt;br /&gt;myMembershipProvider = &lt;/font&gt;&lt;font color=#008080 size=2&gt;Membership&lt;/font&gt;&lt;font size=2&gt;.Providers[&lt;/font&gt;&lt;font color=#800000 size=2&gt;"MySqlMembershipProvider_Local"&lt;/font&gt;&lt;font size=2&gt;];&lt;br /&gt;myProfileProvider = (&lt;/font&gt;&lt;font color=#008080 size=2&gt;SqlProfileProvider&lt;/font&gt;&lt;font size=2&gt;)Profile.Providers[&lt;/font&gt;&lt;font color=#800000 size=2&gt;"MySqlProfileProvider_Local"&lt;/font&gt;&lt;font size=2&gt;]; &lt;br /&gt;}&lt;br /&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;else&lt;br /&gt;&lt;/font&gt;&lt;font size=2&gt;{&lt;br /&gt;myMembershipProvider = &lt;/font&gt;&lt;font color=#008080 size=2&gt;Membership&lt;/font&gt;&lt;font size=2&gt;.Providers[&lt;/font&gt;&lt;font color=#800000 size=2&gt;"MySqlMembershipProvider_Remote"&lt;/font&gt;&lt;font size=2&gt;];&lt;br /&gt;myProfileProvider = (&lt;/font&gt;&lt;font color=#008080 size=2&gt;SqlProfileProvider&lt;/font&gt;&lt;font size=2&gt;)Profile.Providers[&lt;/font&gt;&lt;font color=#800000 size=2&gt;"MySqlProfileProvider_Remote"&lt;/font&gt;&lt;font size=2&gt;];&lt;br /&gt;}&lt;/font&gt;
&lt;p&gt;Now I'm trying to understand how to use the profile provider references to actually get user profile data. Unfortunately, all I can figure out how to get is ProfileInfo collection info on the profiles, not the profile data itself.&lt;/p&gt;
&lt;p&gt;What I want is to use something like the code that worked before:&lt;/p&gt;
&lt;blockquote&gt;&lt;font size=2&gt;
&lt;p&gt;Profile.GetProfile(thisUserName).userid;&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;
&lt;p&gt;However, Profile is based on the default profile provider chosen in web.config, and I'm unclear on how to "reset" it by selecting a new provider. Best I can do now is:&lt;/p&gt;&lt;font size=2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/font&gt;&lt;font color=#008080 size=2&gt;ProfileInfoCollection&lt;/font&gt;&lt;font size=2&gt; thisProfile = myProfileProvider.FindProfilesByUserName(System.Web.Profile.&lt;/font&gt;&lt;font color=#008080 size=2&gt;ProfileAuthenticationOption&lt;/font&gt;&lt;font size=2&gt;.All, thisUserName, 0, 1, &lt;/font&gt;&lt;font color=#0000ff size=2&gt;out&lt;/font&gt;&lt;font size=2&gt; totalRecords);&lt;/font&gt;
&lt;p&gt;which suffers from the aforementioned "collection info only" problem.&lt;/p&gt;
&lt;p&gt;Can anyone help?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>