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
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