Esempio n. 1
0
 protected void EntityDataSource1_Inserted(object sender, EntityDataSourceChangedEventArgs e)
 {
     if (e.Entity != null)
     {
         TPhotoAlbum myPhotoAlbum = (TPhotoAlbum)e.Entity;
         Response.Redirect(string.Format("ManagePhotoAlbum.aspx?PhotoAlbumID={0}", myPhotoAlbum.ID.ToString()));
     }
 }
Esempio n. 2
0
    protected void EntityDataSource1_Inserting(object sender, EntityDataSourceChangingEventArgs e)
    {
        TPhotoAlbum myPhotoAlbum = (TPhotoAlbum)e.Entity;

        myPhotoAlbum.strUserName = User.Identity.Name;
    }