locked
All conditions must be met before save RRS feed

  • Question

  • User643189141 posted

    Hi,



    SqlDataSource1.InsertParameters["deposit_options"].DefaultValue = TextBox1.Text; SqlDataSource1.Insert();


    How to achieve that is saved, but when all conditions are met,
    If not write the words "Field not met?

    Monday, July 5, 2010 3:06 PM

Answers

  • User1096912014 posted

    I think you can grab errors in SQLDataSource.Inserted event. What exactly you're using in your page? I think I was using Item_Inserted method of the form to catch errors. In my case I was using FormView to insert record.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 5, 2010 4:09 PM

All replies

  • User1096912014 posted

    I think you can grab errors in SQLDataSource.Inserted event. What exactly you're using in your page? I think I was using Item_Inserted method of the form to catch errors. In my case I was using FormView to insert record.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 5, 2010 4:09 PM
  • User643189141 posted

    I have information Name, Last Name, Title, etc ...
    If you filled, is saved, otherwise made a mistake.

    I have this mirror, but the source code does not work: http://www.codeproject.com/KB/webforms/Explore_ListView.aspx?msg=3282957

    Monday, July 5, 2010 4:24 PM