Thanks for answering, but that creates the same problem:
The page then gets ALWAYS displayed in Read-Only mode instead of only AFTER INSERTING the data.
Again:
Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As FormViewInsertedEventArgs)
FormView1.ChangeMode(FormViewMode.ReadOnly)
FormView1.DataBind()
MessageLabel.Text = "Record inserted successfully."
End Sub
The MessageLabel.Text command gets executed correctly. But not the two commands above it.
What I need, and this has to be possible!?, is to display the data I've just inserted via FormView.
Any help is greatly appreciated,
Jerome