<?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>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" 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: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/2774970.aspx</link><pubDate>Sun, 30 Nov 2008 02:29:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2774970</guid><dc:creator>umbyersw</dc:creator><author>umbyersw</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2774970.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2774970</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;triadfate:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;I did explictly state it, and it&amp;#39;s no longer out of context. However, I can not access the custom varaibles associated with the current profile.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s like the actually profile object isn&amp;#39;t being built yet.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;In a web application project (as opposed to a web site project), the Profile class is not auto-generated from config.&lt;/p&gt;
&lt;p&gt;For those unfortunate souls, you will need to use the two following&amp;nbsp;techniques to manage your profile settings.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;// Retrieving values&lt;br /&gt;string MyValue = (string) Context.Profile.GetPropertyValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;MyValue&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;// Setting values&lt;br /&gt;if (Context.Profile.UserName != null) {&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&amp;nbsp; Context.Profile.SetPropertyValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;MyValue&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;something&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;&amp;nbsp; Context.Profile.Save();&lt;br /&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244637.aspx</link><pubDate>Fri, 31 Mar 2006 21:58:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244637</guid><dc:creator>triadfate</dc:creator><author>triadfate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244637.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244637</wfw:commentRss><description>&lt;p&gt;haha, yeah, my response hasn't posted yet but I just saw your response. I basicly did the same thing, as you should see in the code. My major issue was I didn't know enough about the Profile object, how and when it was getting generated.&lt;/p&gt;
&lt;p&gt;But, I have it under control now. Thank you very much for your time in this. It was starting to drive me mad, lol.&lt;/p&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244632.aspx</link><pubDate>Fri, 31 Mar 2006 21:54:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244632</guid><dc:creator>pkellner</dc:creator><author>pkellner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244632.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244632</wfw:commentRss><description>I have to admit I always use forms authentication, but that being said, here is an example of using Profile in the updatemethod of the ObjectDataSource.&amp;nbsp; (You can generate your own on my web site at http://painfreeods.peterkellner.net&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;font&gt;&lt;font color="black" face="Courier New" size="2"&gt; [DataObjectMethod(DataObjectMethodType.Update, &lt;font color="blue"&gt;true&lt;/font&gt;)]&lt;br /&gt;        &lt;font color="blue"&gt;public&lt;/font&gt; &lt;font color="blue"&gt;void&lt;/font&gt; Update(&lt;font color="blue"&gt;string&lt;/font&gt; userName, &lt;font color="blue"&gt;string&lt;/font&gt; email,&lt;font color="blue"&gt;bool&lt;/font&gt; isLockedOut,&lt;br /&gt;             &lt;font color="blue"&gt;bool&lt;/font&gt; isApproved, &lt;font color="blue"&gt;string&lt;/font&gt; comment, &lt;font color="blue"&gt;DateTime&lt;/font&gt; lastActivityDate, &lt;font color="blue"&gt;DateTime&lt;/font&gt; lastLoginDate&lt;br /&gt;                  ,&lt;font color="blue"&gt;string&lt;/font&gt; firstName,&lt;font color="blue"&gt;string&lt;/font&gt; lastName,&lt;font color="blue"&gt;bool&lt;/font&gt; advancedMode,&lt;font color="blue"&gt;string&lt;/font&gt; address_Street,&lt;font color="blue"&gt;string&lt;/font&gt; address_City,&lt;font color="blue"&gt;string&lt;/font&gt; address_State,&lt;font color="blue"&gt;string&lt;/font&gt; address_Zip&lt;br /&gt;        )&lt;br /&gt;        {&lt;br /&gt;            &lt;font color="blue"&gt;bool&lt;/font&gt; dirtyFlagMu = &lt;font color="blue"&gt;false&lt;/font&gt;;&lt;br /&gt;&lt;br /&gt;            MembershipUser mu = Membership.GetUser(userName);&lt;br /&gt;&lt;br /&gt;            ProfileCommon pc = (ProfileCommon)ProfileBase.Create(mu.UserName, &lt;font color="blue"&gt;true&lt;/font&gt;);&lt;br /&gt;            pc.FirstName = firstName;&lt;br /&gt;            pc.LastName = lastName;&lt;br /&gt;            pc.AdvancedMode = advancedMode;&lt;br /&gt;            pc.Address.Street = address_Street;&lt;br /&gt;            pc.Address.City = address_City;&lt;br /&gt;            pc.Address.State = address_State;&lt;br /&gt;            pc.Address.Zip = address_Zip;&lt;br /&gt;            pc.Save();&lt;br /&gt;&lt;br /&gt;            &lt;font color="blue"&gt;if&lt;/font&gt; (mu.IsLockedOut &amp;amp;&amp;amp; !isLockedOut)&lt;br /&gt;            {&lt;br /&gt;                mu.UnlockUser();&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;font color="blue"&gt;if&lt;/font&gt; ( &lt;font color="blue"&gt;string&lt;/font&gt;.IsNullOrEmpty(mu.Comment) || mu.Comment.CompareTo(comment) != 0)&lt;br /&gt;            {&lt;br /&gt;                dirtyFlagMu = &lt;font color="blue"&gt;true&lt;/font&gt;;&lt;br /&gt;                mu.Comment = comment;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;font color="blue"&gt;if&lt;/font&gt; (&lt;font color="blue"&gt;string&lt;/font&gt;.IsNullOrEmpty(mu.Email) || mu.Email.CompareTo(email) != 0)&lt;br /&gt;            {&lt;br /&gt;                dirtyFlagMu = &lt;font color="blue"&gt;true&lt;/font&gt;;&lt;br /&gt;                mu.Email = email;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;font color="blue"&gt;if&lt;/font&gt; (mu.IsApproved != isApproved)&lt;br /&gt;            {&lt;br /&gt;                dirtyFlagMu = &lt;font color="blue"&gt;true&lt;/font&gt;;&lt;br /&gt;                mu.IsApproved = isApproved;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;font color="blue"&gt;if&lt;/font&gt; (dirtyFlagMu == &lt;font color="blue"&gt;true&lt;/font&gt;)&lt;br /&gt;            {&lt;br /&gt;                Membership.UpdateUser(mu);&lt;br /&gt;            }&lt;br /&gt;        }&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244631.aspx</link><pubDate>Fri, 31 Mar 2006 21:54:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244631</guid><dc:creator>triadfate</dc:creator><author>triadfate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244631.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244631</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.odetocode.com/Articles/440.aspx"&gt;http://www.odetocode.com/Articles/440.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above site answers ALL the questions I had in regards to Profiles. In fact it is a very handy article if you ever intend on using Profiles I suggest you read it.&lt;/p&gt;
&lt;p&gt;The solution to my issue basicly looks like this:&lt;/p&gt;
&lt;p&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web.UI;&lt;br /&gt;&lt;br /&gt;&lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;&lt;br /&gt;/// Summary description for ManagePage&lt;br /&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="kwd"&gt;public class&lt;/span&gt; ManagePage : Page&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwd"&gt;public&lt;/span&gt; ManagePage()&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; PreInit += &lt;span class="kwd"&gt;new&lt;/span&gt; EventHandler(ManagePage_PreInit);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwd"&gt;void&lt;/span&gt; ManagePage_PreInit(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs 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; ProfileCommon profile = HttpContext.Current.Profile &lt;span class="kwd"&gt;as&lt;/span&gt; ProfileCommon;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; profile.Master = &lt;span class="st"&gt;&amp;quot;/skin/Basic/default.master&amp;quot;&lt;/span&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MasterPageFile = profile.Master;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;&amp;nbsp;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244516.aspx</link><pubDate>Fri, 31 Mar 2006 19:36:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244516</guid><dc:creator>triadfate</dc:creator><author>triadfate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244516.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244516</wfw:commentRss><description>&lt;p&gt;It's nearly the same as membership. What I've discovered, however, is you can't access it from a custom base class. It has to be used on the actuall aspx page. It all has to do with when the user gets athunticated (I'm using integrated auth). If the user hasn't been athunticated it can't find the Profile for that user yet.&lt;/p&gt;
&lt;p&gt;I tried a work around, all be it a little odd, but I didn't like the results. You can create an new aspx page remove all the code from the .aspx except for the necessary header and apply the code you want to happen on every page to the codebehind. Then in the code behind of all the other aspx pages inherit the codebehind you just created. This will let you use the Profile object (created by ProfileCommon after athuntication takes place) in a "base page" you can inherit.&lt;/p&gt;
&lt;p&gt;The down side is you have to remove the reference to the MasterPageFile from your aspx pages or else it will overwrite what your inheriting from the "base page" you just created. This, of course, causes errors during build and is quite annoying.&lt;/p&gt;
&lt;p&gt;I just wish there was a way to get this to work from a base class normally&amp;nbsp;but I haven't been able to figure it out yet.&lt;/p&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244504.aspx</link><pubDate>Fri, 31 Mar 2006 19:17:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244504</guid><dc:creator>pkellner</dc:creator><author>pkellner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244504.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244504</wfw:commentRss><description>are you trying to get the membership info?&lt;br /&gt;&lt;br /&gt;Here is some sample code that works for me in my page_unload event.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;protected void Page_UnLoad(object sender, EventArgs 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; string urlReferrer = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string userAgent = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string userHostName = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string userHostAddress = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string userPrimaryLanguage = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sessionId = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (HttpContext.Current.Request.UrlReferrer != null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; urlReferrer = HttpContext.Current.Request.UrlReferrer == null ? string.Empty : HttpContext.Current.Request.UrlReferrer.ToString();&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; userAgent = HttpContext.Current.Request.UserAgent == null ? string.Empty : HttpContext.Current.Request.UserAgent.ToString();&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; userHostName = HttpContext.Current.Request.UserHostName == null ? string.Empty : HttpContext.Current.Request.UserHostName.ToString();&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; userHostAddress = HttpContext.Current.Request.UserHostAddress == null ? string.Empty : HttpContext.Current.Request.UserHostAddress.ToString();&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; userPrimaryLanguage = HttpContext.Current.Request.UserLanguages == null ? string.Empty : HttpContext.Current.Request.UserLanguages[0].ToString();&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; sessionId = Session.SessionID.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string userName = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (IsPostBack)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; userName = "PostBack";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; userName = string.Empty;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; utils.LogPageLoadTime(startTime, "Default.aspx", userName,&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; urlReferrer, userAgent, userHostName, userHostAddress, userPrimaryLanguage,sessionId);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244327.aspx</link><pubDate>Fri, 31 Mar 2006 17:09:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244327</guid><dc:creator>triadfate</dc:creator><author>triadfate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244327.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244327</wfw:commentRss><description>&lt;p&gt;I did explictly state it, and it's no longer out of context. However, I can not access the custom varaibles associated with the current profile.&lt;/p&gt;
&lt;p&gt;It's like the actually profile object isn't being built yet.&lt;/p&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244323.aspx</link><pubDate>Fri, 31 Mar 2006 17:08:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244323</guid><dc:creator>pkellner</dc:creator><author>pkellner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244323.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244323</wfw:commentRss><description>that is how I reference Cache in my app.&lt;br /&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244322.aspx</link><pubDate>Fri, 31 Mar 2006 17:07:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244322</guid><dc:creator>triadfate</dc:creator><author>triadfate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244322.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244322</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/2y3fs9xs(VS.80).aspx"&gt;http://msdn2.microsoft.com/en-us/library/2y3fs9xs(VS.80).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;this is what I'm refering to. which I believe is&amp;nbsp;HttpContext.Profile&lt;/p&gt;</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1244311.aspx</link><pubDate>Fri, 31 Mar 2006 16:54:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1244311</guid><dc:creator>triadfate</dc:creator><author>triadfate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1244311.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1244311</wfw:commentRss><description>I believe so, yes. Should I explictly sate it as such?</description></item><item><title>Re: The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1243766.aspx</link><pubDate>Fri, 31 Mar 2006 06:36:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1243766</guid><dc:creator>pkellner</dc:creator><author>pkellner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1243766.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1243766</wfw:commentRss><description>are you looking for:&lt;br /&gt;&lt;br /&gt;HttpContext.Current.Profile&lt;br /&gt;&lt;br /&gt;</description></item><item><title>The name 'Profile' does not exist in the current context</title><link>http://forums.asp.net/thread/1243492.aspx</link><pubDate>Thu, 30 Mar 2006 22:19:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1243492</guid><dc:creator>triadfate</dc:creator><author>triadfate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1243492.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1243492</wfw:commentRss><description>&lt;p&gt;Basicly, I'm trying to create a custom base page and inherit it to all of my aspx pages. I'm getting the above error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The name 'Profile' does not exist in the current context&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The custom base page looks like this:&lt;/p&gt;
&lt;p&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Configuration;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.Security;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.Profile;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI.WebControls;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI.WebControls.WebParts;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI.HtmlControls;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.IO;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;br /&gt;&lt;span class=cmt&gt;/// &amp;lt;summary&amp;gt;&lt;br /&gt;/// Summary description for ManagePage&lt;br /&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class=kwd&gt;public class&lt;/span&gt; ManagePage : System.Web.UI.Page&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; &lt;span class=kwd&gt;protected void&lt;/span&gt; Page_PreInit(Object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; &lt;span class=cmt&gt;//define skin.&lt;/span&gt;&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; MasterPageFile = Profile.Master;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And an example of an aspx page, looks like this:&lt;/p&gt;
&lt;p&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Configuration;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.Security;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI.WebControls;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI.WebControls.WebParts;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Web.UI.HtmlControls;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.IO;&lt;br /&gt;&lt;span class=kwd&gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;br /&gt;&lt;span class=kwd&gt;public&lt;/span&gt; partial &lt;span class=kwd&gt;class&lt;/span&gt; home : ManagePage &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class=kwd&gt;protected void&lt;/span&gt; Page_Load(&lt;span class=kwd&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KFD.DataLayer dl = &lt;span class=kwd&gt;new&lt;/span&gt; KFD.DataLayer();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; litInfoUpdates.Text = dl.GetInfoUpdates();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;&amp;nbsp;I'm new to using aspx like this so I'm not sure if the Profile object is getting built after the base class tries to evaluate, or if I'm making a simple mistake some where. Any assistance would be appreciated.</description></item></channel></rss>