Enable the profile feature in web.config file
Configure the profile feature by defining a list of properties whose values need to be maintained
Web.config section:
profile
properties
group name = “address”
add name = “street”
add name = “city”
group
add name=”PostalCode”
type = “String|Int32|DateTime|StringCollection...”
serializeAs = “String|binary|xml...”
allowAnonymous = “true|false”
defaultValue= “”
readOnly = “true|false”
provider = “”
customProviderData = “”/>
properties
profile
Store data to Profile from server control: Profile.PostalCode = txtPostalCode.Text;
Read data from Profile: weatherInfo = GetWeatherInfo( Profile.PostalCode );
No comments:
Post a Comment