Groups | Blog | Home
all groups > asp.net security > june 2007 >

asp.net security : How can I use " ProfileCommon" class in MyWebsiteCore.dll,Is That possible


Osamede Zhang
6/21/2007 12:00:00 AM
You know ASP.NET automatically generates a class named Profile in the
Temporary ASP.NET Files directory, But I want to write this class by
myself,So I can use it in my class library,
What should I do?
Thanks for your read

Dominick Baier
6/21/2007 12:00:00 AM
Hi,

you have to derive a class from ProfileBase - add your properties and annotate
them (have a look at the docs)

Then you specify that class in the inherits attribute in the profile element
in web.config.

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

[quoted text, click to view]


6/22/2007 4:26:41 AM

Thank you very much.
On Jun 21, 1:41 pm, Dominick Baier
[quoted text, click to view]

AddThis Social Bookmark Button