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!!!"
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow