title: run an ASP code onclick a link using javascript
body: <p>Aright. First let me describe what I want to do.
  I've a section on my website that clients comment on articles and they can rate those comments Via + / - links that I used there. When a user rated a comment up or down then that user shouldn't be able to rate for that comment any more.
  at the moment I wrote the ASP classic code for above problem but it's a bit slow. because when user click on link the page must reload to add vote.</p>
  
  <p>so, here is my question:
  I want to use an Ajax code behind that asp code to prevent Reload page after click on + Or - .
  something like this when user didn't voted yet</p>
  
  <pre><code>&lt;a onclick='rateup("Comment_ID","user_ID") style="cursor:pointer"&gt; &lt;b&gt; + &lt;/b&gt; &lt;/a&gt;
  </code></pre>
  
  <p>and then update to this when user rated already:</p>
  
  <pre><code>&lt;a onclick='alert("You have Already Rated This Comment")' style='cursor:not-allowed;'&gt;&lt;span&gt; &gt; + &lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>once again I've done with ASP code but want a AJAX :)</p>