I think you can use HttpContext.Current to determine if it's running in
ASP.NET or not.
Walter Wang ( XXXX@XXXXX.COM , remove 'online.')
Microsoft Online Community Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.