ASP.net button is clicked in every page refresh
<p>I have an asp.net button in my page, after I click the button, it is clicked again and again whenever I refresh the same page. </p>

<p>I tried;</p>

<pre><code>if (!IsPostBack)
   {
   .....         
   }
</code></pre>

<p>for the click function of the button, but in this case button is not working. </p>

<pre><code> &lt;asp:Button ID="btnCommentSubmit" runat="server" Text="Submit" CssClass="leaveAComment" onclick="btnCommentSubmit_Click" /&gt;
</code></pre>

<p>above is the button.</p>

<pre><code>protected void btnCommentSubmit_Click(object sender, EventArgs e)
    {

        string cityID = BusinessClass.Default.findCityIDByCountryAndCityName(Request.QueryString["city"].ToString(), "url").ToString();
        BusinessClass.Default.makeComment(txtComment.Text, Session["userID"].ToString(), cityID);
        txtComment.Text = null;

    }
</code></pre>

<p>and this is the function.</p>
