I\'m developing an ASP.net application using Entity Framework. I\'m using DetailsView
to insert data into database. There is a table as Client
and its
Thanks, I spent 3 days searching and searching with complicated results but this solution is brilliant! Here it is in vb.net:
Protected Sub dvArticulos_ItemInserted(sender As Object, e As EntityDataSourceChangedEventArgs) Handles EntityDataSource1.Inserted
Dim last_Serie As Long = DirectCast(e.Entity, articulos).Serie
Session("Articulo") = last_Serie
End Sub