Enable asp.net 2.0 profile

with asp.net 2.0 profile, you get access to untyped database storage all through the use of web.config file

 this is very useful for small website or if you have fields that may change its datatype later on in the development, and its really simple to use.

 insert following to your webconfig

<profile enabled="true">
   <properties>
    <add name="FirstName"/>
</>

thats it!  now you have a database field for "firstname"

To use it, simply call profile.Firstname
or profile.firstname = xxx to set it.

have FUNZ !

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: beggerking
Posted on: 4/28/2009 at 3:19 AM
Categories: Technical
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (1) | Post RSSRSS comment feed

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading