locked
Getting error messages twice RRS feed

  • Question

  • User949140326 posted

    Split off from http://forums.asp.net/t/1404080.aspx/1/10?Exception+Handling

    Hi,

     

    Can you please tell me how you solved this problem. I am also getting error messages twice.

    The below is the code used in the partial methods 

    If instance.IsNonBookUser Then sp_validateSEIDforNonBook(instance.BookNumber, result) If result = 0 Then Throw New ValidationException("No employee exists with this SEID. Please try again.") Else Me.ExecuteDynamicInsert(instance) End If

    This is my aspx code

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="false"

    HeaderText="List of validation errors" />

    <%

    <asp:DynamicValidator runat="server" ID="DetailsViewValidator" ControlToValidate="DetailsView1" Display="Dynamic" />

     I am not sure where i am missing. I really appreciate your help!

     

    Monday, August 1, 2011 7:55 AM

All replies

  • User-330204900 posted

    Hi padkavi,are 7you using VS2010 with Linq to SQL for this?

    Tuesday, August 2, 2011 11:26 AM