Jquery asp.net error
<p>i just cant figure why it makes this error. when i run the below codes. the jquery function works <strong>but the text revert back to what it was before clicking</strong>.please help.</p>

<pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ViewListOfProjects.aspx.cs" Inherits="Final_Year_Project_Allocation_System.Stud.ViewListOfProjects" EnableSessionState="True" EnableViewState="False" %&gt;
&lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"&gt;
&lt;/asp:Content&gt;
&lt;asp:Content ID="Content2" ContentPlaceHolderID="SideBarContent" runat="server"&gt;
    &lt;div class="well"&gt;
        &lt;ul class="nav nav-list"&gt;
            &lt;li class="nav-header"&gt;Student Menu&lt;/li&gt;
            &lt;li&gt;&lt;a href="RegisterTeam.aspx"&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="student_project_choice.aspx"&gt;Select Project&lt;/a&gt;&lt;/li&gt;
            &lt;li class="active"&gt;&lt;a href="ViewListOfProjects.aspx"&gt;View Project Proposal&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="ViewAllocatedProject.aspx"&gt;View allocated project&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="MscProjectProposalForm.aspx"&gt;Propose Project&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="ChangePassword.aspx"&gt;Change Password&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/asp:Content&gt;
&lt;asp:Content ID="Content3" ContentPlaceHolderID="BodyContent" runat="server"&gt;
        &lt;div class="navbar navbar-inverse navbar-fixed-top"&gt;
        &lt;div class="navbar-inner"&gt;
            &lt;div class="container-fluid"&gt;
                &lt;a class="btn btn-navbar"&gt;&lt;/a&gt;&lt;a class="brand" href="#"&gt;Project Allocation System&lt;/a&gt;
                &lt;div class="nav-collapse collapse"&gt;
                    &lt;p class="navbar-text pull-right"&gt;
                        Logged in as
                        &lt;asp:Label ID="lblUsername" runat="server"&gt;&lt;/asp:Label&gt;
                        &lt;asp:LinkButton ID="btnLogout" runat="server" onclick="btnLogout_Click"&gt;Logout&lt;/asp:LinkButton&gt;
                    &lt;/p&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;asp:Label ID="lblMessage" runat="server" Text=""&gt;&lt;/asp:Label&gt;
    &lt;div class="pull-right"&gt;
    &lt;asp:Label ID="lblPdf" runat="server" Text="View In PDF format" CssClass="label label-info"&gt;&lt;/asp:Label&gt;
    &lt;asp:ImageButton ID="btnPdf" 
            ImageUrl="~/Images/Adobe-PDF-Document-icon.png" Height="60px" Width="60px" runat="server" OnClientClick="redirect();"/&gt;
    &lt;br/&gt;&lt;br/&gt;
    &lt;/div&gt;

&lt;div id="pdfContent"&gt;
    &lt;p&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;asp:PlaceHolder ID="projectHolder" runat="server"&gt;&lt;/asp:PlaceHolder&gt; 

&lt;script language="javascript" type="text/javascript"&gt;
    function redirect() {
        $('p').text("ss");
}
</code></pre>

<p></p>

<p></p>

<p>i want the text to contain the "ss" from the jquery function and it stays that way.</p>
