How can I use " ProfileCommon" class in MyWebsiteCore.dll,Is That possible

O

Osamede Zhang

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
 
D

Dominick Baier

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top