how to make message appear after record is inserted?

  • Thread starter Thread starter Jan
  • Start date Start date
J

Jan

Hello,

Just after the new record is inserted in the database using a Detailsview
control, i would like to display a short message "the record is inserted".
In the aspx file, i defined a hiddenfiekd:
<asp:HiddenField ID="HiddenField1" runat="server" Visible="false" />

In the code-behind:
Protected Sub DetailsView1_ItemInserted(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DetailsViewInsertedEventArgs) Handles
DetailsView1.ItemInserted
HiddenField1.Visible = True
HiddenField1.Value = "record inserted"
End Sub


My problem is that nothing appears. It's due to the automatic postback, i
think. Any way to make the message visible?

Thanks
Jan
 
Is there any explanation why it doesn't with a hiddenfield?
Because it's hidden.

Bob Lehmann
 
Back
Top