I have a DetailsView that I use to update some database data. In the footer of the DetailsView is a label I am trying to use as a status message panel. For instance, I display validation errors in this label.
After updating a record, which causes a postback, I am unable to get the label to display my status text. For example:
<FooterTemplate>
<div style="padding:4px;">
<asp:Label ID="FileUploadStatusLabel" runat="server" Text="" Enabled="true" EnableViewState="True"></asp:Label>
</div>
</FooterTemplate>
File_SqlDataSource.InsertParameters["file_name"].DefaultValue = fileName;
CertificateFile_SqlDataSource.Insert();
uploadStatusLabel.Text = "Your file was uploaded successfully.";
MainGridView.DataBind();