Try this site! There is explained everything about your problem.
How to hide asp:literal after refreshing page
Question
I have asp:literal text line which will shown after pressed "Save" button. But when i refresh site, the literal text won't disappear.
<asp:Literal id="Literall" Text="" runat="server"/>
Literall.text="Save completed!!!"
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow