473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
Jun 21 '07 #1
2 4017
Only the ASP.Net Web Site projects generate an automatic Profile class. A
lot of people find the ASP.Net Web Application Projects more versatile. The
problem is, they don't compile the Profile at runtime sicne the main
difference with the Web Application Project is that it compiles everything
at build time. There is a tool for the Web Application Project that will
enable you to automatically create a WebProfile class based upon the items
in the profile config. You could even put this in a completely seperate DLL
and consume it wherever you need to.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Osamede Zhang" <os*****@163.comwrote in message
news:eC**************@TK2MSFTNGP02.phx.gbl...
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

Jun 21 '07 #2
We have the some problem. Can I have the information(url) of that tool please ?

"Mark Fitzpatrick" wrote:
Only the ASP.Net Web Site projects generate an automatic Profile class. A
lot of people find the ASP.Net Web Application Projects more versatile. The
problem is, they don't compile the Profile at runtime sicne the main
difference with the Web Application Project is that it compiles everything
at build time. There is a tool for the Web Application Project that will
enable you to automatically create a WebProfile class based upon the items
in the profile config. You could even put this in a completely seperate DLL
and consume it wherever you need to.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Osamede Zhang" <os*****@163.comwrote in message
news:eC**************@TK2MSFTNGP02.phx.gbl...
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


Jul 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anthony Baxter | last post by:
To go along with the 2.4a3 release, here's an updated version of the decorator PEP. It describes the state of decorators as they are in 2.4a3. PEP: 318 Title: Decorators for Functions and...
2
by: alain.hogue | last post by:
I known that by using the "Profile_MigrateAnonymous" event I can migrate my anonymous users profile to their authenticated account profile, but I would like to carry over some of the properties of...
0
by: Calavera | last post by:
Hi, I have the following line my class Dim objProfile As ProfileCommon = HttpContext.Current.Profile When I compile the class I get the following error. "error BC30002: Type 'ProfileCommon'...
5
by: Lynne | last post by:
I apologize in advance for the lengthy message but wanted to include as much information as possible. Any insight/assistance would be appreciated. The following line of code throws an error when...
1
by: AMP | last post by:
Hello, I have enabled Profiles in the web.config and seems to be working fine (I can see the auto generated ProfileCommon class including my custom properties in my \Temporary ASP.NET Files...
0
by: Phil | last post by:
I've started getting this message after doing a publish of an Asp.Net 2.0 (c#) web site. The site uses a custom profile provider - I'm sure there is a relation here, but I can't find it. ...
1
by: muriwai | last post by:
Hi, I have a website which used the following web.config: ------ <profile defaultProvider="SqlProfileProvider"> <add name="SqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"...
0
by: Osamede Zhang | last post by:
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...
5
by: Steven | last post by:
I have the following in my web.config: <system.web> <profile defaultProvider="MyASPSqlProfileProvider" enabled="true" > <properties> <add name="FirstName" defaultValue="" type="string"/> <add...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.