Solved

Catching Validation Error in ASP.Net

Posted on 2011-09-30
1
465 Views
Last Modified: 2012-05-12

Trying to figure out where to catch validation exception.

I have a asp.net web form that has a formView control that is connected to a LinqDataSource control.  Created a partial class to do the validation (see below).  When the exception is thrown I cannot figure out where to catch it.

I expected to find and event on the LingDataSource control.   I am new to using databound controls/data source controls so I am hoping this is a very easy.




Partial Public Class User

    Private Sub OnUser_NameChanging(value As String)
        If value.Contains("jon") Then
            Throw New Exception("jon is not valid")
        End If
    End Sub

End Class

Open in new window

0
Comment
Question by:jongrossex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
jongrossex earned 0 total points
ID: 36893367
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question