Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding the failing Insert command
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Finding the failing Insert command
Environment versions
Environment:
ASP.NET
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01280304
Message ID:
01280304
Views:
58
Hi everybody,

I'm trying to figure out a problem with the inserting information.

I have a formView with

OnItemInserted="Some Procedure"

In this procedure we have:
 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?

The exception says 'Incorrect syntax near (.)" but it is not that helpful.

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform