title: __doPostback - calling code behind events from JavaScript?
body: <p>I wish to call a method in my code behind from JavaScript, I sort of know how to do it.. I must call <code>__DoPostBack</code> passing name of control and parameters..</p>
  
  <p>But what if an event doesn't exist i.e. NO CONTROL. Really what i am trying to do is call an event.. but the event doesn't exist as there is no control associated with it..</p>
  
  <p>I sort of could do this:</p>
  
  <pre><code>If IsPostBack Then
         If Request(”__EVENTTARGET”).Trim() = “CleanMe” Then
             CleanMe()
         End If
  .....
  </code></pre>
  
  <p>But this means I must do it manually.  Can I not wire up an event.... otherwise I will have loads of different IFs (i.e. If this passed then call this .. etc..).</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>