MsgBox is an alias for System.Windows.Forms.MessageBox. Since this is a Windows Form class, you can't use it in an ASP.NET application -- you'll need to use a javascript alert. Or write to the NT EventLog. Or write to a log file, using something like log4net
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first