I have been able to work out with the System.Web.HttpContext object. Thanks a lot Monique and Carlos for the support as I am new to .NET and web technologies. Have been a pure VC++ Win 32 programmer but with changing times....:)