ArgumentNHull Exception Handling
-
Hi all, I have a formview from which I manage to insert the data in to the database.now I want to handle the System.ArgumentNull Exception.So please give some hints regarding the same. P.S. I have Added code in ObjectDataSource_Inserted Method. Thanks in Advance
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
-
Hi all, I have a formview from which I manage to insert the data in to the database.now I want to handle the System.ArgumentNull Exception.So please give some hints regarding the same. P.S. I have Added code in ObjectDataSource_Inserted Method. Thanks in Advance
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
I got The Solution . you can use the method
FormView_Inserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception != null) { lbl_exception.Text = e.Exception..InnerException; e.ExceptionHandled = true; e.KeepInInsertMode = true; } }
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.