"Duckkiller" <(E-Mail Removed)> wrote in
news:F79B3CDB-44D7-4D57-A120-(E-Mail Removed):
> Could someone please help: I'm trying to understand how you would
> call these two events from a web page.
> AnonymousIdentification_Creating and Profile_MigrateAnonymous. The
> Author of the book I'm reading states that they can be called from the
> web page's source.
he actually states, although not emphatically, that you can code them in
the global.asax file. It is the global handler for the application and
session.
These are events fired, and they need to be handled by a file that is
called as part of the normal ASP.NET process. The page is at a higher
level in the "stack", so to speak, so it cannot directly handle the
event, at leats not without a lot of kludging.
If you want to handle the event, you can do it in the global.asax file.
If you need to do something with it from the page, you will have to
store it where it can be pulled. Session might be an option, as you need
some separation of different anonymous calls. You can also create a
custom property bag, but it would have to be cleaned out over time, so
session is probably easiest. ;-)
Peace and Grace,
Greg
--
Vote for Miranda's Christmas Story
http://tinyurl.com/mirandabelieve
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************