10.02.2014 Views

Beginning Ajax With ASP.NET (2006).pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 12<br />

profObj.saved.add(OnSaveProfileData);<br />

profObj.save();<br />

..............<br />

function OnSaveProfileData()<br />

{<br />

alert(“Profile Data has been saved.”);<br />

}<br />

Avoiding Profile Service Gotchas<br />

You should keep in mind several important “gotchas” whenever you are using the <strong>ASP</strong>.<strong>NET</strong> profile service<br />

in Atlas. These are:<br />

❑<br />

Web.Config file — The Web.Config file needs to be set up properly, and there are several settings<br />

you need to pay attention to:<br />

❑<br />

The tag must be configured. This may mean adding a section for<br />

authenticationService and profileService. A set of entries should look something<br />

like this example:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

❑<br />

<strong>With</strong>in the tag, the enableBrowserAccess must be turned on. This<br />

is accomplished within the like this:<br />

<br />

<br />

<br />

❑<br />

The tag must be configured to get and set the profile’s properties.<br />

Either the properties may be configured with “*”, which represents all profile properties,<br />

or each property may be listed out individually, such as Name;Address. Note that<br />

each property is separated from the others by a semicolon.<br />

<br />

<br />

<br />

324<br />

❑<br />

Properties that are part of groups may be referenced by GroupName.PropertyName in<br />

the profileService, setProperties, and getProperties attributes.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!