asp.net profiles not working in global.asax?

Posted by Martin Ongtangco on Stack Overflow See other posts from Stack Overflow or by Martin Ongtangco
Published on 2010-04-21T05:21:19Z Indexed on 2010/04/21 5:23 UTC
Read the original article Hit count: 466

Filed under:
|

Hello,

i have a class that returns the parameters i've set in the profile properties in web.config. It works great on classes, but I cannot seem to make it work under the Global.asax?

Here is how I get the parameter:

public static string MissingPagePath
        {
            get { return HttpContext.Current.Profile.GetPropertyValue("MissingPage").ToString(); }
        }

Help!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about profiles