Untested, but you should be able to do something like this:
1. Convert the relevant controls to TemplateFields using the DetailsView's Smart Task panel.
2. Handle the ModeChanged event with code like this:
Code:
Protected Sub DetailsView1_ModeChanged(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles DetailsView1.ModeChanged
If DetailsView1.CurrentMode = DetailsViewMode.Edit Then
Dim txtName As TextBox = CType(DetailsView1.FindControl("Name"), TextBox)
txtName.Text = Context.User.Identity.Name
End If
End Sub
This way, when the control is in Insert mode you use FindControl to find the nexted TextBox controls and then set their values.
Cheers,
Imar