If you are using a text editor, then you do not have the luxury of an integrated debugging environment. There is something that you can use that is quite handy - the Trace Log. Put this in your Page_Load routine:<BR><BR>Page.Trace.IsEnabled = true<BR><BR>What this gives you is a wonderful collection of information that is formatted nicely on your page. You can also write to this log to get output on different variables and routines. You write to the log like this:<BR><BR>Tace.Warn("My Debug Statement", "The value of variable foo is: " & foo)<BR><BR>Trace.Warn("strSQL", "strSQL = " & strSQL)<BR><BR>.... or whatever you want to output. The beauty of this is that you do not need to remove debug code when you go live - simply turn tracing off. This is better that our old way or using Response.Write() to output debug info to the page.<BR><BR>I would also suggest that you get familiar with using Try/Catch blocks for error handling.