if (e.Exception == null) //some code } else { string Text = "The data was entered in an incorrect format, please, check it over."; string Script = string.Format("parent.DisplayMessage(\"{0}\");", Text); this.ClientScript.RegisterClientScriptBlock(this.GetType(), "Mesage", Script, true); e.ExceptionHandled = true; e.KeepInInsertMode = true; } }My question is how can I find out the generated insert string to see the actual error?