using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class test_detailsview : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

	protected void DetailsView1_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
	{
		string agence = (string) e.OldValues["nom_agence"];
		e.NewValues["nom_agence"] = agence.ToLower();
		
		e.Cancel = false; // valeur par défaut, bien sûr !
	}
}
