protected void fvMine_ItemCreated(object sender, EventArgs e)
{
//if the current mode in insert mode
if (fvMine.CurrentMode == FormViewMode.Insert)
{
//get a reference to the control
txt = (TextBox) fvMine.Row.FindControl("txtCity");
if (txt != null)
{
// populate it with a default value
txt.Text = "New York";
}