Howdy StrataFramers:
I'm trying to handle the ErrorSaving event of a business object that is used on an .ASPX page and that is referenced in the ApplicationBasePage as such.
Public WithEvents oPrefix As Prefix
On the page where the saving is taking place I put the following code as per the help topic ErrorSaving:
Private Sub ErrorSaving(ByVal e As MicroFour.StrataFrame.Business.ErrorSavingEventArgs) Handles oPrefix.ErrorSaving
Dim lcErrorText As String = ""
lcErrorText = Me.GenerateWarningTable(e.ToString)
SetErrorsLabelState("Show", lcErrorText)
End Sub
But I get an error saying the signatures do not match. It looks like the ErrorSaving example caters to WinForms so I guess my question is how do I snag this event in an ASPX page so I can capture the Unique Key Violation message from the database and display it to the user. I tried the same thing in the web example from Micro4 and the same error occurs. I guess I'm doing the same thing incorrectly in both places.
Thanks guys,
CT
Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com