Validation before insert with CrmEntityFormView

Aug 24, 2010 at 8:32 PM

How do i access the information on my form that is being submitted with the CrmEntityFormView control?

What I'd like to do is to be able to validate that an email address does not currently exist in the system before I insert it.  Can this be done with this control or must I manually build the page to have more control over things?

Aug 24, 2010 at 8:51 PM

Take a look at the ProductRegistration.aspx.cs file for an example.  Simply implement the OnItemInserting() event handler.  The example on the product registration page is ensuring that the product is not registered more than once, which sounds exactly like the functionality you are looking to implement.

Shan McArthur

Aug 24, 2010 at 9:05 PM

Shan this is exactly what I was looking for... thank you!