And if I can't do this, when do the Exception properties of the Item Updated event arguments ever get used...??? And as for what code is being executed - there isn't any, it's all handled by the Details View! Violation of UNIQUE KEY constraint 'IX_Table Name_1'.
Run Execute Reader T ds(Command Behavior cmd Behavior, Run Behavior run Behavior, Boolean return Stream, Boolean async) 1021 System.
Update(IDictionary keys, IDictionary values, IDictionary old Values, Data Source View Operation Callback callback) 78 System.
How can I catch these errors - I have no control over the code where the error's occurring, so I can't put a try-catch block in? How can I catch this error, or get the Details View or Sql Data Source to catch it for me, and keep it so I can check on it? Can I do this, or do I have to faff around making sure they don't happen before it tries to save the changes? As far as I'm concerned that's all I need to tell you - I don't want to confuse the issue by pasting the full schema of a massive table when I know precisely what's going wrong - I just want to catch it! Raise Post Back Event(IPost Back Eve nt Handler source Control, String event Argument) 11 System. Raise Post Back Event(Name Value Col lection post Data) 33 System. Can I do this, or do I have to faff around making sure they don't happen before it tries to save the changes? Stuart You need to post more accurate information rather than have us Guess what your table design is. On Erro r(Sql Exception exception, Boolean break Connection) 68 System.
And if I can't do this, when do the Exception properties of the Item Updated event arguments ever get used...??? It sounds to me like the GUID in the current record is being used as the PK in the duplicate, this is not allowed.
I have a table which has a Guid as a Primary Key, and a Var Char field (a Title) which is also unique.
I was under the impression that regardless of the outcome, the Item Updated event of the Details View control would fire, and I could then check the Exception properties of the event arguments, and act accordingly. If I change the title field to a value which is also in the table, then it throws the error below (I couldn't get the description last night, as I was at home). Stack trace follows, in case you need it: [Sql Exception (0x80131904): Violation of UNIQUE KEY constraint 'IX_Courses_1'.
Handle Event( Event Args e, Boolean causes Validation, String validation Group) 450 System.
On Bubble Even t(Object source, Event Args e) 88 System.
Hi, I have a Details View control bound to a Sql Data Source. Finish Execute Read er(Sql Data Reader ds, Run Behavior run Behavior, String reset Options String) 147 System.