tenno
June 7th, 2006, 02:02 AM
ASP.Net 2.0:
I'm very new to creating web pages and am struggling to find the easiest way to insert data into database. Right now I am using a DetailsView control and a AccessDataSource control. However I need to validate what is put into the DetailsView control before the inserting occurs for exp: validate non-duplicate data...etc
I figure it has something to do with the _ItemInserting event but have no idea what code to put in between. Thanks in Advance.
Protected Sub DetailView_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertEventArgs) Handles dvaddcar.ItemInserting
End Sub
I'm very new to creating web pages and am struggling to find the easiest way to insert data into database. Right now I am using a DetailsView control and a AccessDataSource control. However I need to validate what is put into the DetailsView control before the inserting occurs for exp: validate non-duplicate data...etc
I figure it has something to do with the _ItemInserting event but have no idea what code to put in between. Thanks in Advance.
Protected Sub DetailView_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertEventArgs) Handles dvaddcar.ItemInserting
End Sub