Click here to Skip to main content
15,171,303 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am giving some text in a page then its going to another page. after that when i back to that page in browser still the previous data are showing ....plz i want to clear those data. plz give me solution..............
Posted
Comments
monsterchub 1-Jul-14 4:50am
   
why do you want to clear it? is it some king of login page?
InteGen Chinmaya 1-Jul-14 4:59am
   
i need ans how to clear ...plz help me
Yogesh Kumar Tyagi 1-Jul-14 4:50am
   
Hey please tell us first clear your Technology that used for create page.
InteGen Chinmaya 1-Jul-14 4:54am
   
C# 3.5
InteGen Chinmaya 1-Jul-14 4:54am
   
Asp.net
InteGen Chinmaya 1-Jul-14 4:54am
   
its a registration page. i want to clear all browser history after clicking that

if your data in a control than simply you clear it like
C#
TextBox1.text="";
TextBox2.text="";
   
Comments
InteGen Chinmaya 1-Jul-14 5:06am
   
yes but it will clear the textbox value but i want to clear browser information....
ASP.NET
<head  runat="server">
    <title></title>
    <script>
        function clearForm() {
            document.getElementById('<%=TextBox1.ClientID%>').value = "";
        }
    </script>
</head>
<body onload="clearForm()">
    <form id="form1"  runat="server">
        <div>
            <asp:TextBox ID="TextBox1" runat="server" >
            </asp:TextBox><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
        </div>
    </form>
</body>
   
v2
Refer - Browser back button issue after logout[^].

You need to delete browser cache.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900